Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_timestring.cpp
index 628b504..a0808aa 100644 (file)
@@ -86,13 +86,16 @@ ValueNode_TimeString::~ValueNode_TimeString()
 ValueBase
 ValueNode_TimeString::operator()(Time t)const
 {
+       if (getenv("SYNFIG_DEBUG_VALUENODE_OPERATORS"))
+               printf("%s:%d operator()\n", __FILE__, __LINE__);
+
        Time time((*time_)(t).get(Time()));
 
        switch (get_type())
        {
        case ValueBase::TYPE_STRING:
-               if (get_parent_canvas())
-                       return time.get_string(get_parent_canvas()->rend_desc().get_frame_rate());
+               if (get_root_canvas())
+                       return time.get_string(get_root_canvas()->rend_desc().get_frame_rate());
                else
                        return time.get_string();
        default: