From: mpv Date: Fri, 17 Apr 2015 16:47:40 +0000 (+0300) Subject: Issue #408: clear undo in any case and in sub-documents on finish operation X-Git-Tag: V_1.1.0^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9ca0832b89bd2304375fd858678495912b700033;p=modules%2Fshaper.git Issue #408: clear undo in any case and in sub-documents on finish operation --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index c471c2a71..836e289b2 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -382,9 +382,13 @@ bool Model_Document::finishOperation() // nothing inside in all documents, so remove this transaction from the transactions list undoInternal(true, false); } - // on finish clear redos in any case (issue 446) + // on finish clear redos in any case (issue 446) and for all subs (issue 408) myDoc->ClearRedos(); myRedos.clear(); + for (aSubIter = aSubs.begin(); aSubIter != aSubs.end(); aSubIter++) { + subDoc(*aSubIter)->myDoc->ClearRedos(); + subDoc(*aSubIter)->myRedos.clear(); + } return aResult; }