1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-11-04 23:37:33 +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; drag_start = pos;
break; break;
} }
tool_reset();
prev = selected_inst; prev = selected_inst;
inst_select(pos); inst_select(pos);
if (prev != selected_inst) if (prev != selected_inst)