summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-11-22 00:48:53 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-11-22 00:48:53 +0000
commit2b79d07e5263a10d65dd89efb9f5ca7dc14bb8d0 (patch)
tree008345ab2e41572bc74c903ac8baf506ad20c16f
parentSpeed improvement on dep scanning. Better decision about whether compile nee... (diff)
downloadinkscape-2b79d07e5263a10d65dd89efb9f5ca7dc14bb8d0.tar.gz
inkscape-2b79d07e5263a10d65dd89efb9f5ca7dc14bb8d0.zip
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
(bzr r2002)
-rw-r--r--src/select-context.cpp6
1 files 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;