summaryrefslogtreecommitdiffstats
path: root/src/conn-avoid-ref.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/conn-avoid-ref.cpp
parentextract_uri: fix, test, document (diff)
downloadinkscape-91112f9d55017b82caa02a3c4673a8420a361801.tar.gz
inkscape-91112f9d55017b82caa02a3c4673a8420a361801.zip
DocumentUndo::ScopedInsensitive
Diffstat (limited to 'src/conn-avoid-ref.cpp')
-rw-r--r--src/conn-avoid-ref.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/conn-avoid-ref.cpp b/src/conn-avoid-ref.cpp
index 087bd93fa..32d564fe6 100644
--- a/src/conn-avoid-ref.cpp
+++ b/src/conn-avoid-ref.cpp
@@ -364,8 +364,7 @@ void init_avoided_shape_geometry(SPDesktop *desktop)
// Don't count this as changes to the document,
// it is basically just late initialisation.
SPDocument *document = desktop->getDocument();
- bool saved = DocumentUndo::getUndoSensitive(document);
- DocumentUndo::setUndoSensitive(document, false);
+ DocumentUndo::ScopedInsensitive _no_undo(document);
bool initialised = false;
std::vector<SPItem *> tmp;
@@ -376,8 +375,6 @@ void init_avoided_shape_geometry(SPDesktop *desktop)
SPItem *item = *iter;
item->avoidRef->handleSettingChange();
}
-
- DocumentUndo::setUndoSensitive(document, saved);
}