From 3ad1f9b6d79cb4512840c457d86e53f5da8b310f Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 16 Apr 2015 18:07:31 +0300 Subject: [PATCH] Fix for the issue #446 --- src/Model/Model_Document.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index c2321d59b..c471c2a71 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -381,9 +381,11 @@ bool Model_Document::finishOperation() if (!aResult && isRoot()) { // nothing inside in all documents, so remove this transaction from the transactions list undoInternal(true, false); - myDoc->ClearRedos(); - myRedos.clear(); } + // on finish clear redos in any case (issue 446) + myDoc->ClearRedos(); + myRedos.clear(); + return aResult; } -- 2.39.2