From: nds Date: Wed, 16 Sep 2015 15:51:43 +0000 (+0300) Subject: Issue #948 Wrong display after Sketch edition X-Git-Tag: V_1.4.0~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d8cbe202b432d024d6c89c7b7f773028ae18c582;p=modules%2Fshaper.git Issue #948 Wrong display after Sketch edition Code correction. --- diff --git a/src/ModuleBase/ModuleBase_OperationFeature.cpp b/src/ModuleBase/ModuleBase_OperationFeature.cpp index 46a17a931..b3540002f 100755 --- a/src/ModuleBase/ModuleBase_OperationFeature.cpp +++ b/src/ModuleBase/ModuleBase_OperationFeature.cpp @@ -78,6 +78,7 @@ void ModuleBase_OperationFeature::startOperation() if (!aFeature.get() || !isEditOperation()) return; + myVisualizedObjects.clear(); // store hidden result features std::list aResults = aFeature->results(); std::list::const_iterator aIt; @@ -89,7 +90,7 @@ void ModuleBase_OperationFeature::startOperation() } } if (!aFeature->isDisplayed()) { - myVisualizedObjects.insert(*aIt); + myVisualizedObjects.insert(aFeature); aFeature->setDisplayed(true); } Events_Loop::loop()->flush(Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY));