From b775137117aa459a9edb00c999bab3b41d9338ff Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 22 Nov 2006 00:48:53 +0000 Subject: [PATCH] button-down event may have been missed (e.g. when you do button-1 down while button-3 is down), so we can't just assume we have rubberband. This fixes the stray rubberband bug, especially annoying on windows with a tablet --- src/select-context.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/select-context.cpp b/src/select-context.cpp index 96a9f741b..d883483b3 100644 --- a/src/select-context.cpp +++ b/src/select-context.cpp @@ -513,8 +513,10 @@ sp_select_context_root_handler(SPEventContext *event_context, GdkEvent *event) sp_canvas_end_forced_full_redraws(desktop->canvas); } } else { - Inkscape::Rubberband::get()->move(p); - gobble_motion_events(GDK_BUTTON1_MASK); + if (Inkscape::Rubberband::get()->is_started()) { + Inkscape::Rubberband::get()->move(p); + gobble_motion_events(GDK_BUTTON1_MASK); + } } } break; -- 2.30.2