From 857b1f72d9703c46c6c8c9bb239821d314344c86 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 10 Sep 2015 12:33:25 +0300 Subject: [PATCH] Fix for the issue #910: never fully remove the results, just make them disabled when not needed. --- src/ModelAPI/ModelAPI_Feature.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ModelAPI/ModelAPI_Feature.cpp b/src/ModelAPI/ModelAPI_Feature.cpp index 84fe97847..f677d5c52 100644 --- a/src/ModelAPI/ModelAPI_Feature.cpp +++ b/src/ModelAPI/ModelAPI_Feature.cpp @@ -104,12 +104,12 @@ void ModelAPI_Feature::removeResults(const int theSinceIndex, const bool theFlus while( aNextIter != myResults.end()) { aGroup = (*aNextIter)->groupName(); // remove previously erased results: to enable later if needed only actual (of history change) - if (theSinceIndex == 0 && (*aNextIter)->isDisabled()) { - aNextIter = myResults.erase(aNextIter); - } else { + //if (theSinceIndex == 0 && (*aNextIter)->isDisabled()) { + // aNextIter = myResults.erase(aNextIter); + //} else { (*aNextIter)->setDisabled(*aNextIter, true); // just disable results aNextIter++; - } + //} } if (!aGroup.empty() && theFlush) { // flush visualisation changes -- 2.39.2