]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
INT PAL 0052631: Line width property does not affect Shading with edges display mode...
authormpa <mpa@opencascade.com>
Thu, 2 Apr 2015 08:59:48 +0000 (11:59 +0300)
committermpa <mpa@opencascade.com>
Thu, 2 Apr 2015 08:59:48 +0000 (11:59 +0300)
src/GEOMGUI/GEOM_Displayer.cxx

index 3d17ca13edf0224d81d4bb5c7d99a6354d199b21..205e9db757d3655cfc148e5a2548d17fdeea4068 100644 (file)
@@ -845,7 +845,7 @@ void GEOM_Displayer::updateShapeProperties( const Handle(GEOM_AISShape)& AISShap
   // - face boundaries color and line width
   anAspect = AISShape->Attributes()->FaceBoundaryAspect();
   anAspect->SetColor( SalomeApp_Tools::color( propMap.value( GEOM::propertyName( GEOM::OutlineColor ) ).value<QColor>() ) );
-  anAspect->SetWidth( propMap.value( GEOM::propertyName( GEOM::LineWidth ) ).toInt() );
+  anAspect->SetWidth( HasWidth() ? GetWidth() : propMap.value( GEOM::propertyName( GEOM::LineWidth ) ).toInt() );
   AISShape->Attributes()->SetFaceBoundaryAspect( anAspect );
 
   // set display vectors flag