From: nds Date: Thu, 26 Feb 2015 08:51:05 +0000 (+0300) Subject: Issue #394 - Undo-ing a Sketch element X-Git-Tag: V_1.1.0~167 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=71be54062c4c8f3cb229c9cef6237cc348da0ee6;p=modules%2Fshaper.git Issue #394 - Undo-ing a Sketch element The OpenCascade does not clear a list of redoes on the start of a new transaction. --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index b6221cc4c..be3489d7b 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -463,7 +463,7 @@ void Model_Document::undo() bool Model_Document::canRedo() { - if (myDoc->GetAvailableRedos() > 0) + if (!myRedos.empty()) return true; // check other subs contains operation that can be redoed const std::set aSubs = subDocuments(true);