From 69793dfec9e9be157b68657b453aed9e53c24ce7 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 22 Dec 2016 17:31:56 +0300 Subject: [PATCH] Fix Auxiliary state for circle --- src/PartSet/PartSet_ResultSketchPrs.cpp | 3 ++- src/SketcherPrs/SketcherPrs_SymbolPrs.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.2