Fix 1697753: compare times with times, not with frame counts
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 10 Apr 2007 15:23:05 +0000 (15:23 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 10 Apr 2007 15:23:05 +0000 (15:23 +0000)
git-svn-id: http://svn.voria.com/code@452 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/canvasinterface.cpp

index 9b1f6a9..2b92275 100644 (file)
@@ -821,10 +821,10 @@ CanvasInterface::seek_frame(int frames)
        Time newtime(get_time()+(float)frames/fps);
        newtime=newtime.round(fps);
 
-       if(newtime<=get_canvas()->rend_desc().get_frame_start())
-               newtime=get_canvas()->rend_desc().get_frame_start();
-       if(newtime>=get_canvas()->rend_desc().get_frame_end())
-               newtime=get_canvas()->rend_desc().get_frame_end();
+       if(newtime<=get_canvas()->rend_desc().get_time_start())
+               newtime=get_canvas()->rend_desc().get_time_start();
+       if(newtime>=get_canvas()->rend_desc().get_time_end())
+               newtime=get_canvas()->rend_desc().get_time_end();
        set_time(newtime);
 }