From 9bc1b052a60474037035c6e5b9558cc8c1c824d3 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 24 Sep 2008 13:10:58 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/synfig/time.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 += " "; -- 2.7.4