Fixed the way that the decision is made which value to use when linking values togeth...
[synfig.git] / synfig-studio / trunk / src / synfigapp / actions / valuenodedynamiclistinsertsmart.cpp
index 0019e97..12b4521 100644 (file)
@@ -2,7 +2,7 @@
 /*!    \file valuenodedynamiclistinsertsmart.cpp
 **     \brief Template File
 **
-**     $Id: valuenodedynamiclistinsertsmart.cpp,v 1.3 2005/01/17 05:20:08 darco Exp $
+**     $Id$
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@ -50,7 +50,7 @@ ACTION_SET_TASK(Action::ValueNodeDynamicListInsertSmart,"insert");
 ACTION_SET_CATEGORY(Action::ValueNodeDynamicListInsertSmart,Action::CATEGORY_VALUEDESC|Action::CATEGORY_VALUENODE);
 ACTION_SET_PRIORITY(Action::ValueNodeDynamicListInsertSmart,-20);
 ACTION_SET_VERSION(Action::ValueNodeDynamicListInsertSmart,"0.0");
-ACTION_SET_CVS_ID(Action::ValueNodeDynamicListInsertSmart,"$Id: valuenodedynamiclistinsertsmart.cpp,v 1.3 2005/01/17 05:20:08 darco Exp $");
+ACTION_SET_CVS_ID(Action::ValueNodeDynamicListInsertSmart,"$Id$");
 
 /* === G L O B A L S ======================================================= */
 
@@ -161,10 +161,10 @@ Action::ValueNodeDynamicListInsertSmart::prepare()
                // turn on. If not, then we need to go ahead and create one.
                synfig::info("ValueNodeDynamicListInsertSmart: index=%d",index);
                synfig::info("ValueNodeDynamicListInsertSmart: value_node->list.size()=%d",value_node->list.size());
-               if(value_node->list.size()<=index && index>0)
+               if(int(value_node->list.size())<=index && index>0)
                        synfig::info("ValueNodeDynamicListInsertSmart: value_node->list[index-1].status_at_time(time)=%d",value_node->list[index-1].status_at_time(time));
 
-               if(value_node->list.size()>=index && index>0 && !value_node->list[index-1].status_at_time(time))
+               if(int(value_node->list.size())>=index && index>0 && !value_node->list[index-1].status_at_time(time))
                {
                        // Ok, we do not have to create a new
                        // entry in the dynamic list after all.