From 48772bcdd008e35d1c1ca413646f4595a4065f3c Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 18 Nov 2008 10:58:17 +0000 Subject: [PATCH] Fix 2119775: "Zoom tool doesn't work if drag outside the window". The problem was that the zoom tool wouldn't allow zooming out by dragging a large rectangle. Now it will. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2206 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/state_zoom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/state_zoom.cpp b/synfig-studio/trunk/src/gtkmm/state_zoom.cpp index 49d7913..5d3e1eb 100644 --- a/synfig-studio/trunk/src/gtkmm/state_zoom.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_zoom.cpp @@ -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); -- 2.7.4