From 118ba7b820bc1dee6510a172df2c6e28f02c42d2 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 3 Dec 2007 18:26:05 +0000 Subject: [PATCH] Fix 1842510: round frame number to nearest integer rather than truncating. git-svn-id: http://svn.voria.com/code@1176 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/listimporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/listimporter.cpp b/synfig-core/trunk/src/synfig/listimporter.cpp index 30bb899..01ef02f 100644 --- a/synfig-core/trunk/src/synfig/listimporter.cpp +++ b/synfig-core/trunk/src/synfig/listimporter.cpp @@ -96,7 +96,7 @@ bool ListImporter::get_frame(Surface &surface,Time time, ProgressCallback *cb) { // DEBUGPOINT(); - int frame=static_cast(time*fps); + int frame=round_to_int(time*fps); // DEBUGPOINT(); if(!filename_list.size()) -- 2.7.4