From: vsv Date: Wed, 24 Jun 2020 08:04:56 +0000 (+0300) Subject: Issue #3222: Update highlighted error points X-Git-Tag: V9_6_0a1~73 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5fbfd2e75c41fcacf436f668bf4f5898bf37a1a9;p=modules%2Fshaper.git Issue #3222: Update highlighted error points --- diff --git a/src/PartSet/PartSet_CustomPrs.cpp b/src/PartSet/PartSet_CustomPrs.cpp index 7b98ee619..fc0fb74d4 100644 --- a/src/PartSet/PartSet_CustomPrs.cpp +++ b/src/PartSet/PartSet_CustomPrs.cpp @@ -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& theM else { if (!myErrorShapes.IsNull()) { aContext->Remove(myErrorShapes, true); + myErrorShapes.Nullify(); } } }