diff options
Diffstat (limited to 'src/ui/tools/tool-base.cpp')
| -rw-r--r-- | src/ui/tools/tool-base.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp index c789b44bb..ca700f652 100644 --- a/src/ui/tools/tool-base.cpp +++ b/src/ui/tools/tool-base.cpp @@ -373,6 +373,8 @@ bool ToolBase::root_handler(GdkEvent* event) { ret = TRUE; } + desktop->canvas->clearRotateTo(); + this->rotating_mode = false; break; case 2: @@ -420,6 +422,8 @@ bool ToolBase::root_handler(GdkEvent* event) { sp_event_root_menu_popup(desktop, NULL, event); } ret = TRUE; + desktop->canvas->clearRotateTo(); + this->rotating_mode = false; break; default: @@ -836,9 +840,7 @@ bool ToolBase::root_handler(GdkEvent* event) { if (this->rotating_mode) { desktop->canvas->clearRotateTo(); this->rotating_mode = false; - ret = TRUE; desktop->canvas->endRotateTo(); - break; } bool ctrl = (event->scroll.state & GDK_CONTROL_MASK); bool wheelzooms = prefs->getBool("/options/wheelzooms/value"); |
