Fix 2119775: "Zoom tool doesn't work if drag outside the window". The problem was...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 18 Nov 2008 10:58:17 +0000 (10:58 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 18 Nov 2008 10:58:17 +0000 (10:58 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2206 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/state_zoom.cpp

index 49d7913..5d3e1eb 100644 (file)
@@ -207,7 +207,7 @@ StateZoom_Context::event_mouse_click_handler(const Smach::event& x)
                        v[1] = abs(v[1])/abs(span[1]);
 
                        float zdiv = max(v[0],v[1]);
-                       if(zdiv < 1 && zdiv > 0) //must be zoomable
+                       if(zdiv > 0) //must be zoomable
                        {
                                get_work_area()->set_focus_point(newpos);
                                get_work_area()->set_zoom(get_work_area()->get_zoom()/zdiv);