Author: Yu Chen <[email protected]>
Date:   Tue Feb  7 13:21:48 2012 +0800

"Scale to fit" model doesn't need to set size request for scrolled window

---

 synfig-studio/src/gui/preview.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/synfig-studio/src/gui/preview.cpp 
b/synfig-studio/src/gui/preview.cpp
index 9a60d9a..1a36a9d 100644
--- a/synfig-studio/src/gui/preview.cpp
+++ b/synfig-studio/src/gui/preview.cpp
@@ -633,7 +633,11 @@ bool studio::Widget_Preview::redraw(GdkEventExpose 
*/*heh*/)
 
        pxnew = px->scale_simple(nw, nh, Gdk::INTERP_NEAREST);
 
-       draw_area.set_size_request(nw, nh);
+       //except "Fit" or "fit", we need to set size request for scrolled window
+       if (text != "Fit" & text != "fit")
+       {
+               draw_area.set_size_request(nw, nh);
+       }
 
        //synfig::info("Now to draw to the window...");
        //copy to window


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to