From: mpv Date: Thu, 16 Apr 2015 15:07:31 +0000 (+0300) Subject: Fix for the issue #446 X-Git-Tag: V_1.1.0~17^2~2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3ad1f9b6d79cb4512840c457d86e53f5da8b310f;p=modules%2Fshaper.git Fix for the issue #446 --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index c2321d59b..c471c2a71 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -381,9 +381,11 @@ bool Model_Document::finishOperation() if (!aResult && isRoot()) { // nothing inside in all documents, so remove this transaction from the transactions list undoInternal(true, false); - myDoc->ClearRedos(); - myRedos.clear(); } + // on finish clear redos in any case (issue 446) + myDoc->ClearRedos(); + myRedos.clear(); + return aResult; }