summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 698cd69)
raw | patch | inline | side by side (parent: 698cd69)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 17 Aug 2009 13:47:20 +0000 (13:47 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 17 Aug 2009 13:47:20 +0000 (13:47 +0000) |
src/node-context.cpp | patch | blob | history |
diff --git a/src/node-context.cpp b/src/node-context.cpp
index 3535ae9e0c7be19a73b74b40897db22a00047c55..7efa57290832fb23565c020ddf57e4f448cc8183 100644 (file)
--- a/src/node-context.cpp
+++ b/src/node-context.cpp
event->button.y);
Geom::Point const button_dt(desktop->w2d(button_w));
Inkscape::Rubberband::get(desktop)->start(desktop, button_dt);
+
+ if (nc->grabbed) {
+ sp_canvas_item_ungrab(nc->grabbed, event->button.time);
+ nc->grabbed = NULL;
+ }
sp_canvas_item_grab(SP_CANVAS_ITEM(desktop->acetate),
GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK,
desktop->updateNow();
}
Inkscape::Rubberband::get(desktop)->stop();
+ if (nc->grabbed) {
+ sp_canvas_item_ungrab(nc->grabbed, event->button.time);
+ nc->grabbed = NULL;
+ }
ret = TRUE;
break;
}