Revision: 2199
          http://synfig.svn.sourceforge.net/synfig/?rev=2199&view=rev
Author:   dooglus
Date:     2008-11-14 17:51:42 +0000 (Fri, 14 Nov 2008)

Log Message:
-----------
When 'zoom to fit' is clicked, zoom a little less than before so the border of 
the canvas is visible.  It wasn't clear that the whole canvas was visible 
before.

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

Modified: synfig-studio/trunk/src/gtkmm/workarea.cpp
===================================================================
--- synfig-studio/trunk/src/gtkmm/workarea.cpp  2008-11-13 23:04:21 UTC (rev 
2198)
+++ synfig-studio/trunk/src/gtkmm/workarea.cpp  2008-11-14 17:51:42 UTC (rev 
2199)
@@ -2581,7 +2581,8 @@
 void
 studio::WorkArea::zoom_fit()
 {
-       float new_zoom(min(drawing_area->get_width() * zoom / w, 
drawing_area->get_height() * zoom / h));
+       float new_zoom(min(drawing_area->get_width() * zoom / w,
+                                          drawing_area->get_height() * zoom / 
h) * 0.995);
        if (zoom / new_zoom > 0.995 && new_zoom / zoom > 0.995)
        {
                set_zoom(prev_zoom);


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