]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #446
authormpv <mpv@opencascade.com>
Thu, 16 Apr 2015 15:07:31 +0000 (18:07 +0300)
committermpv <mpv@opencascade.com>
Thu, 16 Apr 2015 15:07:31 +0000 (18:07 +0300)
src/Model/Model_Document.cpp

index c2321d59b7c39baf1715d214fe3db425d7944b15..c471c2a7119e238f515408632d5b74aedb4773ae 100644 (file)
@@ -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;
 }