Salome HOME
An attempt of porting to current OCCT.
[modules/shaper.git] / src / GeomAPI / GeomAPI_AISObject.cpp
index a94c7b4255f3c6a289a233030f82d7d8ce1326d9..c323a7835704631979c04f3dd8fefb1755444a3a 100644 (file)
@@ -388,7 +388,8 @@ void GeomAPI_AISObject::getColor(int& theR, int& theG, int& theB)
   if (anAIS.IsNull())
     return;
 
-  Quantity_Color aColor = anAIS->Color();
+  Quantity_Color aColor;
+  anAIS->Color(aColor);
   theR = (int)(aColor.Red()*255.);
   theG = (int)(aColor.Green()*255.);
   theB = (int)(aColor.Blue()*255.);