From 941e1f583fd7a7a87f51cbaddf3c4a071f5fbecc Mon Sep 17 00:00:00 2001 From: nds Date: Sun, 6 Sep 2015 18:13:17 +0300 Subject: [PATCH] Temporary workaroud of crash in SALOME study, happens by closing document. --- src/Model/Model_Objects.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index 0a86b587d..7fbbaca8c 100644 --- a/src/Model/Model_Objects.cpp +++ b/src/Model/Model_Objects.cpp @@ -69,7 +69,8 @@ Model_Objects::~Model_Objects() static Events_ID EVENT_DISP = aLoop->eventByName(EVENT_OBJECT_TO_REDISPLAY); ModelAPI_EventCreator::get()->sendDeleted(myDoc, ModelAPI_Feature::group()); ModelAPI_EventCreator::get()->sendUpdated(aFeature, EVENT_DISP); - aFeature->eraseResults(); + aFeature->removeResults(0, false); + //aFeature->eraseResults(); aFeature->erase(); myFeatures.UnBind(aFeaturesIter.Key()); } -- 2.39.2