]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #423: color for polylines presentation is correctly set
authorasl <asl@opencascade.com>
Fri, 22 Aug 2014 05:04:13 +0000 (05:04 +0000)
committerasl <asl@opencascade.com>
Fri, 22 Aug 2014 05:04:13 +0000 (05:04 +0000)
src/HYDROGUI/HYDROGUI_Shape.cxx

index 550deb933ce983a086f350241eece45b1430f94d..eb05a9b4dd816d214b3f9fb818d9e4a49b1d7e32 100644 (file)
@@ -754,6 +754,12 @@ void HYDROGUI_Shape::colorShapeBorder( const QColor& theColor )
         aBoundaryAspect->SetColor( aBorderColor );
         anAttributes->SetFaceBoundaryAspect( aBoundaryAspect );
       }
+      Handle(Prs3d_LineAspect) aWireAspect = anAttributes->WireAspect();
+      if ( !aWireAspect.IsNull() )
+      {
+        aWireAspect->SetColor( aBorderColor );
+        anAttributes->SetWireAspect( aWireAspect );
+      }
     }
   }
   else if ( myDisplayMode == AIS_WireFrame )