From: mpv Date: Thu, 9 Nov 2017 14:51:12 +0000 (+0300) Subject: Fixed the problem of update of the presentation on abort/undo. X-Git-Tag: V_2.10.0RC~167 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd1ba57aa94a97b0486d82451cd4f26e415988c1;p=modules%2Fshaper.git Fixed the problem of update of the presentation on abort/undo. --- diff --git a/src/Model/Model_ResultCompSolid.cpp b/src/Model/Model_ResultCompSolid.cpp index c650196d9..2446e4048 100755 --- a/src/Model/Model_ResultCompSolid.cpp +++ b/src/Model/Model_ResultCompSolid.cpp @@ -240,8 +240,7 @@ void Model_ResultCompSolid::updateSubs(const std::shared_ptr& the } else if (!mySubs.empty()) { // erase all subs while(!mySubs.empty()) { ResultBodyPtr anErased = *(mySubs.rbegin()); - if (anErased->data()->isValid()) - anErased->setDisabled(anErased, true); + anErased->setDisabled(anErased, true); // even if it is invalid (to erase subs on abort/undo) mySubs.pop_back(); } mySubsMap.clear();