From: dooglus Date: Wed, 26 Nov 2008 12:31:45 +0000 (+0000) Subject: Fix 2350636: "shift-drag waypoints can create duplicates at a time". Erase the old... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a2dcd900eabab0ceab8c55231cef6264f8b07e49;p=synfig.git Fix 2350636: "shift-drag waypoints can create duplicates at a time". Erase the old waypoint before adding the copy. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2282 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/synfigapp/actions/waypointsimpleadd.cpp b/synfig-studio/trunk/src/synfigapp/actions/waypointsimpleadd.cpp index c6c2f08..230a82e 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/waypointsimpleadd.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/waypointsimpleadd.cpp @@ -126,6 +126,7 @@ Action::WaypointSimpleAdd::perform() { overwritten_wp = *iter.first; time_overwrite = true; + value_node->erase(overwritten_wp); } //add the value node in since it's safe