Code

button-down event may have been missed (e.g. when you do button-1 down while button...
authorbuliabyak <buliabyak@users.sourceforge.net>
Wed, 22 Nov 2006 00:48:53 +0000 (00:48 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Wed, 22 Nov 2006 00:48:53 +0000 (00:48 +0000)
src/select-context.cpp

index 96a9f741bd0d9a61d675703877780a6dd12b873b..d883483b379d096ba9e4603601d9bebb00729ff5 100644 (file)
@@ -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;