From cf8349439dd89fa8a149283b00d525ebf96f1124 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 12 Feb 2008 07:29:05 +0000 Subject: [PATCH] Clicking a grey (not editable) duck which didn't lie over the layer it was connected to was causing the layer to be unselected. For example, the outside-half of a circle's radius duck, or a tangent duck on a thin outline. This patch from Gerald Young fixes it. git-svn-id: http://svn.voria.com/code@1681 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/workarea.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/workarea.cpp b/synfig-studio/trunk/src/gtkmm/workarea.cpp index d7d61c0..e783687 100644 --- a/synfig-studio/trunk/src/gtkmm/workarea.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarea.cpp @@ -1347,8 +1347,11 @@ WorkArea::on_drawing_area_event(GdkEvent *event) selected_bezier=find_bezier(mouse_pos,radius,&bezier_click_pos); - if(duck && duck->get_editable()) + if(duck) { + if (!duck->get_editable()) + return true; + //get_selected_duck()->signal_user_click(0)(); //if(clicked_duck)clicked_duck->signal_user_click(0)(); -- 2.7.4