]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Abort of sketch: empty transactions appearance fix
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 11 Nov 2014 08:41:53 +0000 (11:41 +0300)
committermpv <mikhail.ponikarov@opencascade.com>
Tue, 11 Nov 2014 08:41:53 +0000 (11:41 +0300)
src/Model/Model_Document.cpp

index 7b77ac066f3119454bac7347e4a76db8ccd1c4fc..a224cc99f153f3bdae7f967e0d7b7f5dabeecbff 100644 (file)
@@ -316,10 +316,8 @@ void Model_Document::abortOperation()
 {
   if (myNestedNum > 0 && !myDoc->HasOpenCommand()) {  // abort all what was done in nested
       // first compact all nested
-    if (compactNested()) {
-      // for nested it is undo and clear redos
-      myDoc->Undo();
-    }
+    compactNested();
+    myDoc->Undo();
     myDoc->ClearRedos();
     myTransactionsAfterSave--;
     myIsEmptyTr.erase(myTransactionsAfterSave);