X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstate_zoom.cpp;h=5d3e1ebab6ccee59f7f3811341de8fd2b79cdb64;hb=1fd9aa7c93922026fc66aef88985740f23766fe8;hp=4c19ce06e8bf086a12078c5ca81f82e26d21e3de;hpb=924d45497fce48981c5aec677028c67d2c047864;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/state_zoom.cpp b/synfig-studio/trunk/src/gtkmm/state_zoom.cpp index 4c19ce0..5d3e1eb 100644 --- a/synfig-studio/trunk/src/gtkmm/state_zoom.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_zoom.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -206,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);