Salome HOME
correct merge BR_hydro_v1_0_3 on BR_quadtree
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ZLayers2.cxx
index bacb4db1146dbaa8cd284794da27d6a786c2772e..323aa4a3503e2c0cbd400b1d0a2298e938345c4c 100644 (file)
@@ -39,8 +39,8 @@ void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle_AIS_Int
     Handle(AIS_InteractiveObject) aPrsObj = aListIter.Value();
     if( !aPrsObj.IsNull() )
     {
-      theContext->MainPrsMgr()->Color( aPrsObj );
       int aMode = aPrsObj->HasHilightMode() ? aPrsObj->HilightMode() : 0;
+      theContext->MainPrsMgr()->Color( aPrsObj, Quantity_NOC_YELLOW, aMode );
       SetPrsZLayer( aPrsObj, aMode, theLayer );
       theContext->MainPrsMgr()->Unhighlight( aPrsObj, aMode );
     }