From 697ce60c7dcef8dfa9a94fcf2163845fca36b296 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Thu, 21 May 2015 10:21:13 +1000 Subject: Fix bug with TentativeUndo where the undo history was being damaged on OS X. For example the sequence ['a', 'c', left, 'b', undo] would produce "c" instead of "ac". --- src/Document.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Document.cxx b/src/Document.cxx index 7d34dace1..3f365fdf4 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -216,6 +216,8 @@ void Document::SetSavePoint() { } void Document::TentativeUndo() { + if (!TentativeActive()) + return; CheckReadOnly(); if (enteredModification == 0) { enteredModification++; -- cgit v1.2.3