Fix 1842510: round frame number to nearest integer rather than truncating.
[synfig.git] / 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())