Author: Yu Chen <[email protected]>
Date:   Thu Mar 15 15:05:03 2012 +0800

Fix scrollbar can't update issue: when zoom out from a preview status with 
scrollbar enabled to a zoom level which don't need scrollbar.

---

 synfig-studio/src/gui/preview.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/synfig-studio/src/gui/preview.cpp 
b/synfig-studio/src/gui/preview.cpp
index 2c7a374..f5025c1 100644
--- a/synfig-studio/src/gui/preview.cpp
+++ b/synfig-studio/src/gui/preview.cpp
@@ -636,12 +636,13 @@ bool studio::Widget_Preview::redraw(GdkEventExpose 
*/*heh*/)
        else if (atof(c) > 1000)
        {
                sx = sy = 10 * q;
-               entry->set_text("1000");
+//             entry->set_text("1000%");
        }
 
-       else if (atof(c) < 10 & atof(c) != NULL)
+       else if (atof(c) <= 0 )
        {
-               sx = sy = 0.1 * q ;
+               sx = sy = 0 ;
+               draw_area.set_size_request(0, 0);
        }
 
        else sx = sy = atof(c) / 100 * q;


------------------------------------------------------------------------------
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