From: mpv Date: Thu, 10 Sep 2015 09:33:25 +0000 (+0300) Subject: Fix for the issue #910: never fully remove the results, just make them disabled when... X-Git-Tag: V_1.4.0_beta4~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=857b1f72d9703c46c6c8c9bb239821d314344c86;p=modules%2Fshaper.git Fix for the issue #910: never fully remove the results, just make them disabled when not needed. --- 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