]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #948 Wrong display after Sketch edition
authornds <nds@opencascade.com>
Wed, 16 Sep 2015 15:51:43 +0000 (18:51 +0300)
committernds <nds@opencascade.com>
Wed, 16 Sep 2015 15:51:43 +0000 (18:51 +0300)
Code correction.

src/ModuleBase/ModuleBase_OperationFeature.cpp

index 46a17a9314454205efe28aeda5b8218c8dafd785..b3540002f2904995522c7b5644a9eba1de8089a1 100755 (executable)
@@ -78,6 +78,7 @@ void ModuleBase_OperationFeature::startOperation()
   if (!aFeature.get() || !isEditOperation())
     return;
 
+  myVisualizedObjects.clear();
   // store hidden result features
   std::list<ResultPtr> aResults = aFeature->results();
   std::list<ResultPtr>::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));