From bd1ba57aa94a97b0486d82451cd4f26e415988c1 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 9 Nov 2017 17:51:12 +0300 Subject: [PATCH] Fixed the problem of update of the presentation on abort/undo. --- src/Model/Model_ResultCompSolid.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); -- 2.39.2