Fix 1842510: round frame number to nearest integer rather than truncating.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 3 Dec 2007 18:26:05 +0000 (18:26 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 3 Dec 2007 18:26:05 +0000 (18:26 +0000)
git-svn-id: http://svn.voria.com/code@1176 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 30bb899..01ef02f 100644 (file)
@@ -96,7 +96,7 @@ bool
 ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb)
 {
 //                     DEBUGPOINT();
-       int frame=static_cast<int>(time*fps);
+       int frame=round_to_int(time*fps);
 //                     DEBUGPOINT();
 
        if(!filename_list.size())