From 9d93930f1448d65494b8b4625635f7d14e678804 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 17 Nov 2008 20:36:57 +0000 Subject: [PATCH] Fix 2256600: "Delete all waypoints of a valuenode unexports it". When deleting the last waypoint of a valuenode, copy the exported name of the valuenode to the value of the last waypoint before replacing the valuenode with the waypoint's value. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2205 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp b/synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp index 8c32c1e..64bdcf6 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp @@ -144,6 +144,10 @@ Action::WaypointRemove::perform() value_node->replace(value_node_ref); value_node->waypoint_list().clear(); + // fix 2256600 : deleting the last waypoint of an exported valuenode unexported it + // if the waypoint's value isn't exported, set its id to be the id of the parent node + if (value_node_ref->get_id() == "") value_node_ref->set_id(value_node->get_id()); + if(get_canvas_interface()) { get_canvas_interface()->signal_value_node_replaced()(value_node,value_node_ref); -- 2.7.4