/* === S Y N F I G ========================================================= */
/*! \file valuenode_range.cpp
-** \brief Template File
+** \brief Implementation of the "Range" valuenode conversion.
**
** $Id$
**
break;
default:
assert(0);
- throw runtime_error("synfig::ValueNode_Range:Bad type "+ValueBase::type_name(id));
+ throw runtime_error(get_local_name()+_(":Bad type ")+ValueBase::type_local_name(id));
}
assert(min_->get_type()==id);
bool
ValueNode_Range::set_link_vfunc(int i,ValueNode::Handle value)
{
- assert(i>=0 && i<3);
+ assert(i>=0 && i<link_count());
+
switch(i)
{
case 0:
ValueNode::LooseHandle
ValueNode_Range::get_link_vfunc(int i)const
{
- assert(i>=0 && i<3);
+ assert(i>=0 && i<link_count());
+
switch(i)
{
case 0: return min_;
String
ValueNode_Range::link_local_name(int i)const
{
- assert(i>=0 && i<3);
+ assert(i>=0 && i<link_count());
+
switch(i)
{
case 0: return _("Min");
String
ValueNode_Range::link_name(int i)const
{
- assert(i>=0 && i<3);
+ assert(i>=0 && i<link_count());
+
switch(i)
{
case 0: return "min";