Revision: 2206
          http://synfig.svn.sourceforge.net/synfig/?rev=2206&view=rev
Author:   dooglus
Date:     2008-11-18 10:58:17 +0000 (Tue, 18 Nov 2008)

Log Message:
-----------
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.

Modified Paths:
--------------
    synfig-studio/trunk/src/gtkmm/state_zoom.cpp

Modified: synfig-studio/trunk/src/gtkmm/state_zoom.cpp
===================================================================
--- synfig-studio/trunk/src/gtkmm/state_zoom.cpp        2008-11-17 20:36:57 UTC 
(rev 2205)
+++ synfig-studio/trunk/src/gtkmm/state_zoom.cpp        2008-11-18 10:58:17 UTC 
(rev 2206)
@@ -207,7 +207,7 @@
                        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);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to