X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_twotone.cpp;h=7ef62a3d8268cb80e5e38dfcbb916bf126a7ac89;hb=7c6c9bc865caa5e585805199f7c2e5f595b1c030;hp=b782b6db16f465e233fcc05451a3ab3548300585;hpb=0d0bdc9197855391289aad7a9256a4287015960d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_twotone.cpp b/synfig-core/trunk/src/synfig/valuenode_twotone.cpp index b782b6d..7ef62a3 100644 --- a/synfig-core/trunk/src/synfig/valuenode_twotone.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_twotone.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file valuenode_twotone.cpp -** \brief Template File +** \brief Implementation of the "Two-Tone" valuenode conversion. ** ** $Id$ ** @@ -72,7 +72,7 @@ ValueNode_TwoTone::create(const ValueBase& x) if(id!=ValueBase::TYPE_GRADIENT) { assert(0); - throw runtime_error("synfig::ValueNode_TwoTone:Bad type "+ValueBase::type_name(id)); + throw runtime_error(String(_("Two-Tone"))+_(":Bad type ")+ValueBase::type_local_name(id)); } ValueNode_TwoTone* value_node=new ValueNode_TwoTone(); @@ -116,7 +116,8 @@ synfig::ValueNode_TwoTone::operator()(Time t)const bool ValueNode_TwoTone::set_link_vfunc(int i,ValueNode::Handle x) { - assert(i>=0 && i<3); + assert(i>=0 && i=0 && i<3); + assert(i>=0 && i=0 && i<2); + assert(i>=0 && i=0 && i<2); + assert(i>=0 && i