From: mpv Date: Wed, 11 Nov 2015 12:51:45 +0000 (+0300) Subject: Fix for the issue #1076 X-Git-Tag: V_2.0.0_alfa2~29^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=80047bbb07f11e49c95d9c47428b23760a74132c;p=modules%2Fshaper.git Fix for the issue #1076 --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index c6e15c7ef..f767f340e 100755 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -634,6 +634,8 @@ bool Model_Document::canUndo() void Model_Document::undoInternal(const bool theWithSubs, const bool theSynchronize) { + if (myTransactions.empty()) + return; int aNumTransactions = myTransactions.rbegin()->myOCAFNum; myRedos.push_back(*myTransactions.rbegin()); myTransactions.pop_back();