From cd82bb8143d8214b4db1b9650118c879cfc34b28 Mon Sep 17 00:00:00 2001 From: morro Date: Fri, 7 Dec 2018 21:21:02 +0100 Subject: [PATCH] rotation snapping enabled by default --- src/control/Control.cpp | 3 +++ src/control/Control.h | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/control/Control.cpp b/src/control/Control.cpp index e36da032..97ad6580 100644 --- a/src/control/Control.cpp +++ b/src/control/Control.cpp @@ -320,6 +320,9 @@ void Control::initWindow(MainWindow* win) XInputUtils::initUtils(win->getWindow()); XInputUtils::setLeafEnterWorkaroundEnabled(settings->isEnableLeafEnterWorkaround()); + + //rotation snapping enabled by default + fireActionSelected(GROUP_SNAPPING,ACTION_ROTATION_SNAPPING); } bool Control::autosaveCallback(Control* control) diff --git a/src/control/Control.h b/src/control/Control.h index cbae468d..a42c8bcb 100644 --- a/src/control/Control.h +++ b/src/control/Control.h @@ -276,8 +276,8 @@ private: RecentManager* recent; UndoRedoHandler* undoRedo; ZoomControl* zoom; - bool fullscreen; - bool snapRotation = false; + bool fullscreen = false; + bool snapRotation = true; //rotation snapping enabled by default Settings* settings; MainWindow* win;