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~60^2~48 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48bed8f800b7c32e2e6db56a7bd7cb3379908341;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 06299acd0..a88af8d07 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(); } } }