Allow Real values to be converted to "BLine Tangent". The ValueNode returns the...
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_bline.cpp
index a8f1798..366c301 100644 (file)
@@ -6,7 +6,7 @@
 **
 **     \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
@@ -282,7 +282,6 @@ ValueNode_BLine::create(const ValueBase &value)
                }
        }
 
-
        return value_node;
 }
 
@@ -291,7 +290,6 @@ ValueNode_BLine::create_list_entry(int index, Time time, Real origin)
 {
        ValueNode_BLine::ListEntry ret;
 
-
        synfig::BLinePoint prev,next;
 
        int prev_i,next_i;
@@ -308,7 +306,7 @@ ValueNode_BLine::create_list_entry(int index, Time time, Real origin)
                next_i=index;
        prev_i=find_prev_valid_entry(index,time);
 
-       synfig::info("index=%d, next_i=%d, prev_i=%d",index,next_i,prev_i);
+       //synfig::info("index=%d, next_i=%d, prev_i=%d",index,next_i,prev_i);
 
        next=(*list[next_i].value_node)(time);
        prev=(*list[prev_i].value_node)(time);
@@ -694,8 +692,7 @@ ValueNode_BLine::operator()(Time t)const
 String
 ValueNode_BLine::link_local_name(int i)const
 {
-       assert(i>=0 && i<list.size());
-
+       assert(i>=0 && (unsigned)i<list.size());
        return etl::strprintf(_("Vertex %03d"),i+1);
 }