projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidy up some is_candidate() methods.
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
synfigapp
/
actions
/
valuedesclink.cpp
diff --git
a/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp
b/synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp
index
0432a48
..
84effe4
100644
(file)
--- a/
synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp
+++ b/
synfig-studio/trunk/src/synfigapp/actions/valuedesclink.cpp
@@
-6,7
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
-** Copyright (c) 2007 Chris Moore
+** Copyright (c) 2007
, 2008
Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-285,6
+285,11
@@
Action::ValueDescLink::prepare()
{
ValueDesc& value_desc(*iter);
{
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());
Action::Handle action(Action::create("value_desc_connect"));
action->set_param("canvas",get_canvas());