From 71be54062c4c8f3cb229c9cef6237cc348da0ee6 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 26 Feb 2015 11:51:05 +0300 Subject: [PATCH] Issue #394 - Undo-ing a Sketch element The OpenCascade does not clear a list of redoes on the start of a new transaction. --- src/Model/Model_Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2