From d8cbe202b432d024d6c89c7b7f773028ae18c582 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 16 Sep 2015 18:51:43 +0300 Subject: [PATCH] Issue #948 Wrong display after Sketch edition Code correction. --- src/ModuleBase/ModuleBase_OperationFeature.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.39.2