From: dooglus Date: Sun, 3 Feb 2008 20:20:27 +0000 (+0000) Subject: Attempting to link a duck from the Children panel with other ducks was causing an... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=sidebyside;h=eebf73ecd0914fe08549d23e5d38e946b65b669a;p=synfig.git Attempting to link a duck from the Children panel with other ducks was causing an error. Now it isn't. git-svn-id: http://svn.voria.com/code@1567 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp index 0432a48..22355db 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp @@ -285,6 +285,11 @@ Action::ValueDescLink::prepare() { ValueDesc& value_desc(*iter); + // only one of the selected items can be exported - that's the one we're linking to + // don't link it to itself + if (value_desc.is_exported()) + continue; + Action::Handle action(Action::create("value_desc_connect")); action->set_param("canvas",get_canvas());