]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3222: Update highlighted error points
authorvsv <vsv@opencascade.com>
Wed, 24 Jun 2020 08:04:56 +0000 (11:04 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Thu, 2 Jul 2020 11:29:15 +0000 (14:29 +0300)
src/PartSet/PartSet_CustomPrs.cpp

index 7b98ee6198ba9b9852ce09a5fdf49b97198d719b..fc0fb74d4e1088e4f02c78698dbe5de81a8d95aa 100644 (file)
@@ -255,8 +255,10 @@ void PartSet_CustomPrs::clearErrorShape()
 {
   if (!myErrorShapes.IsNull()) {
     Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();
-    if (aContext->IsDisplayed(myErrorShapes))
+    if (aContext->IsDisplayed(myErrorShapes)) {
       aContext->Remove(myErrorShapes, true);
+      myErrorShapes.Nullify();
+    }
   }
 }
 
@@ -289,6 +291,7 @@ void PartSet_CustomPrs::processEvent(const std::shared_ptr<Events_Message>& theM
     else {
       if (!myErrorShapes.IsNull()) {
         aContext->Remove(myErrorShapes, true);
+        myErrorShapes.Nullify();
       }
     }
   }