X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_timestring.cpp;fp=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_timestring.cpp;h=d5f643578e0e5415be5877b901d22415cf168c27;hb=28ce5c8b2bdc4a81c74d87ce2052ed3db4829f35;hp=628b50473b46f50bf144bbcd2ea24986d4e41ed5;hpb=fc7feca7b092a6fbaedc9f647a969348ab315f37;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_timestring.cpp b/synfig-core/trunk/src/synfig/valuenode_timestring.cpp index 628b504..d5f6435 100644 --- a/synfig-core/trunk/src/synfig/valuenode_timestring.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_timestring.cpp @@ -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: