Show time 3.0 as "3s" in the default (FORMAT_NORMAL) time display mode, rather than...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 24 Sep 2008 13:10:58 +0000 (13:10 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 24 Sep 2008 13:10:58 +0000 (13:10 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2069 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/time.cpp

index 0ef4cdb..35232d4 100644 (file)
@@ -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 += " ";