0028726: Quantity_NameOfColor should be replaced by Quantity_Color in function input...
[occt.git] / src / AIS / AIS_ColoredShape.cxx
index 223864d..b3b3816 100644 (file)
@@ -94,7 +94,9 @@ AIS_ColoredShape::AIS_ColoredShape (const Handle(AIS_Shape)& theShape)
   }
   if (theShape->HasColor())
   {
-    SetColor (theShape->Color());
+    Quantity_Color aColor;
+    theShape->Color (aColor);
+    SetColor (aColor);
   }
   if (theShape->HasWidth())
   {