summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2018-12-14 10:05:39 +0000
committerThomas Holder <thomas@thomas-holder.de>2018-12-14 10:05:39 +0000
commit91112f9d55017b82caa02a3c4673a8420a361801 (patch)
tree6f72e874054ed63bfbab5a2b9e1f34b56d842c53 /src/document.cpp
parentextract_uri: fix, test, document (diff)
downloadinkscape-91112f9d55017b82caa02a3c4673a8420a361801.tar.gz
inkscape-91112f9d55017b82caa02a3c4673a8420a361801.zip
DocumentUndo::ScopedInsensitive
Diffstat (limited to 'src/document.cpp')
-rw-r--r--src/document.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/document.cpp b/src/document.cpp
index a351957fd..753de44da 100644
--- a/src/document.cpp
+++ b/src/document.cpp
@@ -1276,12 +1276,9 @@ SPDocument::_updateDocument()
SPItemCtx ctx;
setupViewport(&ctx);
- bool saved = DocumentUndo::getUndoSensitive(this);
- DocumentUndo::setUndoSensitive(this, false);
+ DocumentUndo::ScopedInsensitive _no_undo(this);
this->root->updateDisplay((SPCtx *)&ctx, 0);
-
- DocumentUndo::setUndoSensitive(this, saved);
}
this->_emitModified();
}