summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 75e884d)
raw | patch | inline | side by side (parent: 75e884d)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 13 Apr 2007 23:02:53 +0000 (23:02 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 13 Apr 2007 23:02:53 +0000 (23:02 +0000) |
src/select-context.cpp | patch | blob | history |
diff --git a/src/select-context.cpp b/src/select-context.cpp
index 1e251244bb906ed4f52b89255bf2a68a82892971..f6abf44f5a562c845507b7054ba7d0e5d1b7d9f5 100644 (file)
--- a/src/select-context.cpp
+++ b/src/select-context.cpp
@@ -322,6 +322,10 @@ sp_select_context_item_handler(SPEventContext *event_context, SPItem *item, GdkE
sp_canvas_force_full_redraw_after_interruptions(desktop->canvas, 5);
// remember the clicked item in sc->item:
+ if (sc->item) {
+ sp_object_unref(sc->item, NULL);
+ sc->item = NULL;
+ }
sc->item = sp_event_context_find_item (desktop,
NR::Point(event->button.x, event->button.y), event->button.state & GDK_MOD1_MASK, FALSE);
sp_object_ref(sc->item, NULL);
} else { // it was just a click, or a too small rubberband
r->stop();
if (sc->button_press_shift && !rb_escaped && !drag_escaped) {
- // this was a shift-click, select what was clicked upon
+ // this was a shift+click or alt+shift+click, select what was clicked upon
sc->button_press_shift = false;
item = NULL;
}
- } else if (sc->button_press_ctrl && !rb_escaped && !drag_escaped) { // ctrl-click
+ } else if ((sc->button_press_ctrl || sc->button_press_alt) && !rb_escaped && !drag_escaped) { // ctrl+click, alt+click
sc->button_press_ctrl = FALSE;