0028726: Quantity_NameOfColor should be replaced by Quantity_Color in function input...
[occt.git] / src / AIS / AIS_AttributeFilter.cxx
index 3419c44..6ae5601 100644 (file)
@@ -47,7 +47,11 @@ Standard_Boolean AIS_AttributeFilter::IsOk(const Handle(SelectMgr_EntityOwner)&
   
   Standard_Boolean okstat = Standard_True;
   if( hasC && aSelectable->HasColor() )
-    okstat = (myCol == aSelectable->Color());
+  {
+    Quantity_Color aColor;
+    aSelectable->Color (aColor);
+    okstat = (myCol == aColor.Name());
+  }
 
   if( hasW && aSelectable->HasWidth() )
     okstat = (myWid == aSelectable->Width()) && okstat;