From: dooglus Date: Wed, 24 Sep 2008 13:10:58 +0000 (+0000) Subject: Show time 3.0 as "3s" in the default (FORMAT_NORMAL) time display mode, rather than... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9bc1b052a60474037035c6e5b9558cc8c1c824d3;p=synfig.git Show time 3.0 as "3s" in the default (FORMAT_NORMAL) time display mode, rather than sometimes showing "3s 0f". git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2069 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/time.cpp b/synfig-core/trunk/src/synfig/time.cpp index 0ef4cdb..35232d4 100644 --- a/synfig-core/trunk/src/synfig/time.cpp +++ b/synfig-core/trunk/src/synfig/time.cpp @@ -247,7 +247,7 @@ Time::get_string(float fps, Time::Format format)const started = true; } - if(format<=FORMAT_FULL || frame || !started) + if(format<=FORMAT_FULL || abs(frame) > epsilon_() || !started) { if (!(format<=FORMAT_NOSPACES) && started) ret += " ";