From 522e8df574e5b1cb641ad31d41b77427503c3345 Mon Sep 17 00:00:00 2001 From: werner Date: Sat, 2 Jan 2010 21:38:15 +0000 Subject: [PATCH] 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 --- gui_canvas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gui_canvas.c b/gui_canvas.c index b529f5c..a6019d0 100644 --- a/gui_canvas.c +++ b/gui_canvas.c @@ -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)