X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_reference.cpp;h=3c09b44091df08b3523641a09f5e6e75f0f981b2;hb=36233194ac57de8209c0849950cf03d66ec09c99;hp=f0ad6df87f00704d751f987325c0c9c5d212122d;hpb=b37086823c5bfee9c76f6b265584a414100963ef;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_reference.cpp b/synfig-core/trunk/src/synfig/valuenode_reference.cpp index f0ad6df..3c09b44 100644 --- a/synfig-core/trunk/src/synfig/valuenode_reference.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_reference.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 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 @@ -78,20 +79,22 @@ ValueNode_Reference::~ValueNode_Reference() } bool -ValueNode_Reference::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_Reference::set_link_vfunc(int i,ValueNode::Handle value) { - assert(i==0); - if(x->get_type()!=get_type() && !PlaceholderValueNode::Handle::cast_dynamic(x)) - return false; - link_=x; - signal_child_changed()(i);signal_value_changed()(); - return true; + assert(i>=0 && i=0 && i=0 && i=0 && i