From: dooglus Date: Fri, 28 Mar 2008 18:56:14 +0000 (+0000) Subject: Accept 1927294 (a further patch from Gerald Young): the previous patch stopped the... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2c66baeeee2268259cc45bdc479a52c79f83389b;p=synfig.git Accept 1927294 (a further patch from Gerald Young): the previous patch stopped the red square around ducks from showing up when individual blinepoints were selected in the parameter panel. git-svn-id: http://svn.voria.com/code@1934 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/renderer_ducks.cpp b/synfig-studio/trunk/src/gtkmm/renderer_ducks.cpp index b0439a2..c842811 100644 --- a/synfig-studio/trunk/src/gtkmm/renderer_ducks.cpp +++ b/synfig-studio/trunk/src/gtkmm/renderer_ducks.cpp @@ -310,7 +310,9 @@ Renderer_Ducks::render_vfunc( if(get_work_area()->get_selected_value_node()) { synfigapp::ValueDesc value_desc((*iter)->get_value_desc()); - if(value_desc.is_valid() && value_desc.is_value_node() && get_work_area()->get_selected_value_node()==value_desc.get_value_node()) + if (value_desc.is_valid() && + ((value_desc.is_value_node() && get_work_area()->get_selected_value_node() == value_desc.get_value_node()) || + (value_desc.parent_is_value_node() && get_work_area()->get_selected_value_node() == value_desc.get_parent_value_node()))) { gc->set_function(Gdk::COPY); gc->set_rgb_fg_color(DUCK_COLOR_SELECTED);