Made all the assert() lines which check the valuenode sub-parameter index range the...
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_repeat_gradient.cpp
index 074c5d3..181815f 100644 (file)
@@ -1,6 +1,6 @@
 /* === S Y N F I G ========================================================= */
 /*!    \file valuenode_repeat_gradient.cpp
-**     \brief Template File
+**     \brief Implementation of the "Repeat Gradient" valuenode conversion.
 **
 **     $Id: valuenode_repeat_gradient.cpp 604 2007-09-05 14:29:02Z dooglus $
 **
@@ -202,6 +202,7 @@ bool
 ValueNode_Repeat_Gradient::set_link_vfunc(int i,ValueNode::Handle x)
 {
        assert(i>=0 && i<link_count());
+
        switch(i)
        {
                case 0:
@@ -234,6 +235,7 @@ ValueNode::LooseHandle
 ValueNode_Repeat_Gradient::get_link_vfunc(int i)const
 {
        assert(i>=0 && i<link_count());
+
        switch(i)
        {
                case 0:  return gradient_;
@@ -257,6 +259,7 @@ String
 ValueNode_Repeat_Gradient::link_local_name(int i)const
 {
        assert(i>=0 && i<link_count());
+
        switch(i)
        {
                case 0:  return _("Gradient");
@@ -274,6 +277,7 @@ String
 ValueNode_Repeat_Gradient::link_name(int i)const
 {
        assert(i>=0 && i<link_count());
+
        switch(i)
        {
                case 0:  return "gradient";