From 8a72da9d41f9d4a7657793683463f0a957be988c Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 11 Nov 2014 11:41:53 +0300 Subject: [PATCH] Abort of sketch: empty transactions appearance fix --- src/Model/Model_Document.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.39.2