From 32accc6bd243d7e5c683588a3527699f0c25c4ab Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 4 Sep 2015 14:48:56 +0300 Subject: [PATCH] Fix for issue #889 --- src/Model/Model_Objects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index adb4363a8..a1587ad01 100644 --- a/src/Model/Model_Objects.cpp +++ b/src/Model/Model_Objects.cpp @@ -934,7 +934,7 @@ void Model_Objects::updateResults(FeaturePtr theFeature) ResultPtr aBody = std::dynamic_pointer_cast(*aResIter); if (aBody.get()) { std::shared_ptr aData = std::dynamic_pointer_cast(aBody->data()); - if (!aData.get() || !aData->isValid() || aData->isDeleted()) { + if (!aData.get() || !aData->isValid() || (!aBody->isDisabled() && aData->isDeleted())) { // found a disappeared result => remove it theFeature->eraseResultFromList(aBody); // start iterate from beginning because iterator is corrupted by removing -- 2.39.2