From: vsv Date: Thu, 22 Dec 2016 14:31:56 +0000 (+0300) Subject: Fix Auxiliary state for circle X-Git-Tag: V_2.7.0~351^2~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=69793dfec9e9be157b68657b453aed9e53c24ce7;p=modules%2Fshaper.git Fix Auxiliary state for circle --- diff --git a/src/PartSet/PartSet_ResultSketchPrs.cpp b/src/PartSet/PartSet_ResultSketchPrs.cpp index 3a7e52a97..c78304904 100755 --- a/src/PartSet/PartSet_ResultSketchPrs.cpp +++ b/src/PartSet/PartSet_ResultSketchPrs.cpp @@ -231,7 +231,8 @@ void PartSet_ResultSketchPrs::setAuxiliaryPresentationStyle(const bool isAuxilia Standard_Real aCurrentWidth = aLineAspect->Aspect()->Width(); bool isChangedLineType = aType != aPrevLineType; if (isChangedLineType) { - aLineAspect->SetTypeOfLine(aType); + Handle(Prs3d_LineAspect) aAspect = new Prs3d_LineAspect(aCurrentColor, aType, aCurrentWidth); + aDrawer->SetLineAspect(aAspect); } } diff --git a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp index bc3f6090b..cb9e5990b 100644 --- a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp +++ b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp @@ -203,7 +203,7 @@ void SketcherPrs_SymbolPrs::HilightOwnerWithColor( Handle( Prs3d_Presentation ) aHilightPrs = GetHilightPresentation( thePM ); aHilightPrs->Clear(); drawLines(aHilightPrs, theStyle->Color()); - aHilightPrs->SetZLayer (Graphic3d_ZLayerId_Topmost); + aHilightPrs->SetZLayer(Graphic3d_ZLayerId_Topmost); if (thePM->IsImmediateModeOn()) thePM->AddToImmediateList(aHilightPrs);