Don't break time into seconds and frames when the framerate is 1 or more.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 24 Oct 2007 00:10:32 +0000 (00:10 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 24 Oct 2007 00:10:32 +0000 (00:10 +0000)
git-svn-id: http://svn.voria.com/code@956 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 255359b..98dbff5 100644 (file)
@@ -193,7 +193,7 @@ Time::get_string(float fps, Time::Format format)const
                int second;
                second=time;time-=second;
 
-               if(fps)
+               if(fps && fps>1)
                {
                        int frame;
                        frame=round_to_int(time*fps);
@@ -219,7 +219,7 @@ Time::get_string(float fps, Time::Format format)const
                started = true;
        }
 
-       if(fps)
+       if(fps && fps>1)
        {
                int second;
                float frame;