]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1076
authormpv <mpv@opencascade.com>
Wed, 11 Nov 2015 12:51:45 +0000 (15:51 +0300)
committermpv <mpv@opencascade.com>
Wed, 11 Nov 2015 12:51:45 +0000 (15:51 +0300)
src/Model/Model_Document.cpp

index c6e15c7ef3965458559967b83cde2af2ee99f288..f767f340ed5e330b7e1e358ca2251c1935d1622f 100755 (executable)
@@ -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();