]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix regression (after fix for PAL21179):
authormkr <mkr@opencascade.com>
Mon, 30 Jan 2012 12:07:09 +0000 (12:07 +0000)
committermkr <mkr@opencascade.com>
Mon, 30 Jan 2012 12:07:09 +0000 (12:07 +0000)
1) OCC viewer: get the correct default color for wireframe mode from preferences;
2) OCC viewer: change edges color for wireframe mode after change the color of the shape.

src/GEOMToolsGUI/GEOMToolsGUI_1.cxx

index bce39e1ccc32267cdbf714fb8c8a60def18f2f9a..8420eb5cd1901f5d049ac3840a7f63cccf3fc6fd 100644 (file)
@@ -222,8 +222,11 @@ void GEOMToolsGUI::OnAutoColor()
       ic->SetLocalAttributes( io, aCurDrawer );
 
       io->SetColor( aQuanColor );
-      if ( io->IsKind( STANDARD_TYPE(GEOM_AISShape) ) )
-        Handle(GEOM_AISShape)::DownCast( io )->SetShadingColor( aQuanColor );
+      if ( io->IsKind( STANDARD_TYPE(GEOM_AISShape) ) ) {
+       Handle(GEOM_AISShape) aGAISShape = Handle(GEOM_AISShape)::DownCast( io );
+        aGAISShape->SetShadingColor( aQuanColor );
+       aGAISShape->storeBoundaryColors();
+      }
 
       io->Redisplay( Standard_True );
     }