From: dooglus Date: Mon, 3 Dec 2007 18:26:05 +0000 (+0000) Subject: Fix 1842510: round frame number to nearest integer rather than truncating. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=118ba7b820bc1dee6510a172df2c6e28f02c42d2;p=synfig.git 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 --- 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())