Salome HOME
Fix Auxiliary state for circle
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 22 Dec 2016 14:31:56 +0000 (17:31 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 22 Dec 2016 14:31:56 +0000 (17:31 +0300)
src/PartSet/PartSet_ResultSketchPrs.cpp
src/SketcherPrs/SketcherPrs_SymbolPrs.cpp

index 3a7e52a97b0eb5dec84cdbc3ab16ee68183a0eb8..c78304904b488306456ea82547f433983ce17736 100755 (executable)
@@ -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);
   }
 }
 
index bc3f6090b5674fa3d0b50a2259249dea66077d52..cb9e5990b77fa21775ba339dbeb8521c0356f67b 100644 (file)
@@ -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);