From 19a3b00b657cd97859502f8bf693f0d1caf800d7 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 22 Aug 2014 05:04:13 +0000 Subject: [PATCH] refs #423: color for polylines presentation is correctly set --- src/HYDROGUI/HYDROGUI_Shape.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index 550deb93..eb05a9b4 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -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 ) -- 2.39.2