When calculating the start and end frames, round to the nearest integer rather than...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 9 Apr 2008 15:42:25 +0000 (15:42 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 9 Apr 2008 15:42:25 +0000 (15:42 +0000)
git-svn-id: http://svn.voria.com/code@2002 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index c899e7b..81b2c04 100644 (file)
@@ -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 &