From fdeabcedb61a6374c41b085cdcd8b9d6f351cd92 Mon Sep 17 00:00:00 2001 From: Yosshi999 Date: Mon, 4 Mar 2019 19:48:26 +0900 Subject: [PATCH] fix toggling snap with key shortcut breaks history Toggling snap must not be undo-able, but keyboard shortcut '%' didn't turn undo-sensitivity off. See . --- src/verbs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/verbs.cpp b/src/verbs.cpp index d56d9801f3..bfdae4e0bf 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -2056,8 +2056,11 @@ void ZoomVerb::perform(SPAction *action, void *data) sp_namedview_toggle_guides(doc, repr); break; case SP_VERB_TOGGLE_SNAPPING: + { + DocumentUndo::ScopedInsensitive _no_undo(doc); dt->toggleSnapGlobal(); break; + } case SP_VERB_TOGGLE_GRID: dt->toggleGrids(); break; -- GitLab