aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Document.cxx2
1 files changed, 2 insertions, 0 deletions
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++;