From: mpv Date: Tue, 18 Aug 2015 09:00:56 +0000 (+0300) Subject: Debug of abort-updates X-Git-Tag: V_1.4.0_beta4~365 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ca4b1f26bc1daa1acbbd67bada5498677ae3c638;p=modules%2Fshaper.git Debug of abort-updates --- 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();