Salome HOME
Flush the redisplay signal by the document in remove feature; do not change the conce...
[modules/shaper.git] / src / Model / Model_Document.cpp
index ee8cebc14c9d0274a1dd486a1638fca540450c17..754138db905803368bf2264f8e24df9db7b330dc 100644 (file)
@@ -696,6 +696,8 @@ void Model_Document::removeFeature(FeaturePtr theFeature/*, const bool theCheck*
     }
     // event: feature is deleted
     ModelAPI_EventCreator::get()->sendDeleted(theFeature->document(), ModelAPI_Feature::group());
+    // the redisplay signal should be flushed in order to erase the feature presentation in the viewer
+    Events_Loop::loop()->flush(EVENT_DISP);
   }
 }