Salome HOME
lot 10 - warnings for DTM - untested
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ZLayers2.cxx
index c3f547667a4c0d3fe40068d51426e40c427e08fa..f650674956870aa65591f7e70874e39721cbc637 100644 (file)
@@ -41,7 +41,9 @@ void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_Int
 #if OCC_VERSION_LARGE < 0x07010000
       Quantity_NameOfColor aStyle = Quantity_NOC_YELLOW;
 #else
-      Handle(Graphic3d_HighlightStyle) aStyle = new Graphic3d_HighlightStyle( Aspect_TOHM_COLOR, Quantity_NOC_YELLOW );
+      Handle(Graphic3d_HighlightStyle) aStyle = new Graphic3d_HighlightStyle( /*Aspect_TOHM_COLOR, Quantity_NOC_YELLOW*/ );
+      aStyle->SetMethod(Aspect_TOHM_COLOR);
+      aStyle->SetColor(Quantity_NOC_YELLOW);
 #endif
       theContext->MainPrsMgr()->Color( aPrsObj, aStyle, aMode );
       SetPrsZLayer( aPrsObj, aMode, theLayer );