Module: synfig/synfig Branch: genete_width_outline Commit: acf9d97eadc2b8d66742aea93e674972fa0960ab URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=acf9d97eadc2b8d66742aea93e674972fa0960ab
Author: Carlos Lopez <genet...@gmail.com> Date: Thu Jan 13 13:47:12 2011 +0100 Fix forgotten assert check and nasty typo. --- synfig-core/src/synfig/valuenode_composite.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/synfig-core/src/synfig/valuenode_composite.cpp b/synfig-core/src/synfig/valuenode_composite.cpp index 4d3830f..2027b55 100644 --- a/synfig-core/src/synfig/valuenode_composite.cpp +++ b/synfig-core/src/synfig/valuenode_composite.cpp @@ -176,7 +176,7 @@ synfig::ValueNode_Composite::operator()(Time t)const case ValueBase::TYPE_WIDTHPOINT: { WidthPoint ret; - assert(components[0] && components[1] && components[2] && components[3]); + assert(components[0] && components[1] && components[2] && components[3] && components[4]); ret.set_position((*components[0])(t).get(Real())); ret.set_width((*components[1])(t).get(Real())); ret.set_side_type_before((*components[2])(t).get(int())); @@ -257,7 +257,7 @@ ValueNode_Composite::set_link_vfunc(int i,ValueNode::Handle x) components[i]=x; return true; } - if(i==4 && x-get_type()==ValueBase(Vector()).get_type()) + if(i==4 && x->get_type()==ValueBase(Vector()).get_type()) { components[i]=x; return true; ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl