Code

Correct fix from r9070 so that it doesn't break path highlighting
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Thu, 11 Feb 2010 02:24:48 +0000 (03:24 +0100)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Thu, 11 Feb 2010 02:24:48 +0000 (03:24 +0100)
src/ui/tool/node-tool.cpp

index 945fe5edd3c52564d0f949365c67660a5a44c0c4..7ddd3316b5d7c895aa166037780d8e5a8ea55b9c 100644 (file)
@@ -445,8 +445,6 @@ gint ink_node_tool_root_handler(SPEventContext *event_context, GdkEvent *event)
     switch (event->type)
     {
     case GDK_MOTION_NOTIFY: {
-        if (event->button.button == 1) {
-
         combine_motion_events(desktop->canvas, event->motion, 0);
         SPItem *over_item = sp_event_context_find_item (desktop, event_point(event->button),
                 FALSE, TRUE);
@@ -478,11 +476,9 @@ gint ink_node_tool_root_handler(SPEventContext *event_context, GdkEvent *event)
                 prefs->getInt("/tools/nodes/pathflash_timeout", 500));
             c->unref();
         }
+        } break; // do not return true, because we need to pass this event to the parent context
+        // otherwise some features cease to work
 
-        return true;
-        } 
-        }
-        break;
     case GDK_KEY_PRESS:
         switch (get_group0_keyval(&event->key))
         {