X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Factions%2Fwaypointremove.cpp;h=64bdcf65c77a609f7532b52e8fe8e59076c75ca3;hb=955793a73eff1191da57a4e3b3446f761c39e7e1;hp=2dd442a723a2e6ed516975c3e7baaa0759ecee85;hpb=c34eaa5441242b3e9a7b7645e9ee4983d14eae85;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp b/synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp index 2dd442a..64bdcf6 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/waypointremove.cpp @@ -2,7 +2,7 @@ /*! \file waypointremove.cpp ** \brief Template File ** -** $Id: waypointremove.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley @@ -32,6 +32,8 @@ #include "waypointremove.h" #include +#include + #endif using namespace std; @@ -44,12 +46,12 @@ using namespace Action; ACTION_INIT(Action::WaypointRemove); ACTION_SET_NAME(Action::WaypointRemove,"waypoint_remove"); -ACTION_SET_LOCAL_NAME(Action::WaypointRemove,"Remove Waypoint"); +ACTION_SET_LOCAL_NAME(Action::WaypointRemove,N_("Remove Waypoint")); ACTION_SET_TASK(Action::WaypointRemove,"remove"); ACTION_SET_CATEGORY(Action::WaypointRemove,Action::CATEGORY_WAYPOINT); ACTION_SET_PRIORITY(Action::WaypointRemove,0); ACTION_SET_VERSION(Action::WaypointRemove,"0.0"); -ACTION_SET_CVS_ID(Action::WaypointRemove,"$Id: waypointremove.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $"); +ACTION_SET_CVS_ID(Action::WaypointRemove,"$Id$"); /* === G L O B A L S ======================================================= */ @@ -142,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);