Use the framerate from the root canvas, not the parent canvas.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 9 Apr 2008 21:16:59 +0000 (21:16 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 9 Apr 2008 21:16:59 +0000 (21:16 +0000)
git-svn-id: http://svn.voria.com/code@2006 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/valuenode_timestring.cpp

index 628b504..d5f6435 100644 (file)
@@ -91,8 +91,8 @@ ValueNode_TimeString::operator()(Time t)const
        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: