summaryrefslogtreecommitdiffstats
path: root/src/node-context.cpp
diff options
context:
space:
mode:
authorJohn Bintz <me@johnbintz.com>2006-10-04 01:32:03 +0000
committerjohncoswell <johncoswell@users.sourceforge.net>2006-10-04 01:32:03 +0000
commitafc2f94dc4957b728521855c8410cddb0a8b0736 (patch)
tree289e747ed253c79abd3c73dd0577902505df3443 /src/node-context.cpp
parentAdd interface to check whether or not rubberband operation has been started (diff)
downloadinkscape-afc2f94dc4957b728521855c8410cddb0a8b0736.tar.gz
inkscape-afc2f94dc4957b728521855c8410cddb0a8b0736.zip
Ensure that rubberbanding has been initialized before manipulating rubberband
(bzr r1764)
Diffstat (limited to 'src/node-context.cpp')
-rw-r--r--src/node-context.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/node-context.cpp b/src/node-context.cpp
index 6ad2254ce..aae6ce29e 100644
--- a/src/node-context.cpp
+++ b/src/node-context.cpp
@@ -587,10 +587,12 @@ sp_node_context_root_handler(SPEventContext *event_context, GdkEvent *event)
nc->curvepoint_event[NR::Y] = (gint) event->motion.y;
gobble_motion_events(GDK_BUTTON1_MASK);
} else {
- NR::Point const motion_w(event->motion.x,
- event->motion.y);
- NR::Point const motion_dt(desktop->w2d(motion_w));
- Inkscape::Rubberband::get()->move(motion_dt);
+ if (Inkscape::Rubberband::get()->is_started()) {
+ NR::Point const motion_w(event->motion.x,
+ event->motion.y);
+ NR::Point const motion_dt(desktop->w2d(motion_w));
+ Inkscape::Rubberband::get()->move(motion_dt);
+ }
}
nc->drag = TRUE;
ret = TRUE;