1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-25 21:07:12 +02:00

When selecting a tool and then selecting an object, the tool still appeared to

be active, while in truth it had been reset internally.

- gui_canvas.c (button_press_event): if a click is used for selection (and not
  dragging), reset the tool first



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5771 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner 2010-01-02 21:38:15 +00:00
parent 1cd5e6da94
commit 522e8df574

View File

@ -214,6 +214,7 @@ static gboolean button_press_event(GtkWidget *widget, GdkEventButton *event,
drag_start = pos;
break;
}
tool_reset();
prev = selected_inst;
inst_select(pos);
if (prev != selected_inst)