From: dooglus Date: Wed, 9 Apr 2008 15:42:25 +0000 (+0000) Subject: When calculating the start and end frames, round to the nearest integer rather than... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9316101bf1c81e442cbd83b5573ae2ffa350e281;p=synfig.git When calculating the start and end frames, round to the nearest integer rather than always rounding down. git-svn-id: http://svn.voria.com/code@2002 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/renddesc.cpp b/synfig-core/trunk/src/synfig/renddesc.cpp index c899e7b..81b2c04 100644 --- a/synfig-core/trunk/src/synfig/renddesc.cpp +++ b/synfig-core/trunk/src/synfig/renddesc.cpp @@ -250,7 +250,7 @@ RendDesc::set_y_res(Real y) int RendDesc::get_frame_start()const { - return time_begin*frame_rate; + return round_to_int(time_begin*frame_rate); } RendDesc & @@ -262,7 +262,7 @@ RendDesc::set_frame_start(int x) int RendDesc::get_frame_end()const { - return time_end*frame_rate; + return round_to_int(time_end*frame_rate); } RendDesc &