From: buliabyak Date: Wed, 22 Nov 2006 00:48:53 +0000 (+0000) Subject: button-down event may have been missed (e.g. when you do button-1 down while button... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b775137117aa459a9edb00c999bab3b41d9338ff;p=inkscape.git 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 --- 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;