Fix some compiler warnings.
[synfig.git] / synfig-studio / trunk / src / gtkmm / state_zoom.cpp
index 4c19ce0..5d3e1eb 100644 (file)
@@ -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);