Revision: 2205
http://synfig.svn.sourceforge.net/synfig/?rev=2205&view=rev
Author: dooglus
Date: 2008-11-17 20:36:57 +0000 (Mon, 17 Nov 2008)
Log Message:
-----------
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.
Modified Paths:
--------------
synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp
Modified: synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp
===================================================================
--- synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp
2008-11-17 10:21:29 UTC (rev 2204)
+++ synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp
2008-11-17 20:36:57 UTC (rev 2205)
@@ -144,6 +144,10 @@
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);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl