From ca4b1f26bc1daa1acbbd67bada5498677ae3c638 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 18 Aug 2015 12:00:56 +0300 Subject: [PATCH] Debug of abort-updates --- src/Model/Model_Document.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 3a2cb0d2c..d91389b3e 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -427,7 +427,12 @@ void Model_Document::abortOperation() if (!myNestedNum.empty()) (*myNestedNum.rbegin())--; // roll back the needed number of transactions - myDoc->AbortCommand(); + // make commit/undo to get the modification delta + //myDoc->AbortCommand(); + if (myDoc->CommitCommand()) { + modifiedLabels(myDoc, aDeltaLabels); + myDoc->Undo(); + } for(int a = 0; a < aNumTransactions; a++) { modifiedLabels(myDoc, aDeltaLabels); myDoc->Undo(); -- 2.39.2