From: mkr Date: Mon, 30 Jan 2012 12:07:09 +0000 (+0000) Subject: Fix regression (after fix for PAL21179): X-Git-Tag: V6_5_0a1~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa13fb8f0867d3c30abf87e3746ce5bab3172191;p=modules%2Fgeom.git Fix regression (after fix for PAL21179): 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. --- diff --git a/src/GEOMToolsGUI/GEOMToolsGUI_1.cxx b/src/GEOMToolsGUI/GEOMToolsGUI_1.cxx index bce39e1cc..8420eb5cd 100644 --- a/src/GEOMToolsGUI/GEOMToolsGUI_1.cxx +++ b/src/GEOMToolsGUI/GEOMToolsGUI_1.cxx @@ -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 ); }