X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_timestring.cpp;h=d5f643578e0e5415be5877b901d22415cf168c27;hb=0c558bd52dc8777ad065d39d9defaf2e05946867;hp=628b50473b46f50bf144bbcd2ea24986d4e41ed5;hpb=820e061bbc686559b1b7f00da5db7964fc901b08;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: