From: mpv Date: Tue, 11 Nov 2014 08:41:53 +0000 (+0300) Subject: Abort of sketch: empty transactions appearance fix X-Git-Tag: V_0.5~6^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8a72da9d41f9d4a7657793683463f0a957be988c;p=modules%2Fshaper.git Abort of sketch: empty transactions appearance fix --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 7b77ac066..a224cc99f 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -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);