[Skencil-commits] r758 - skencil/branches/skencil-0.6/src/Sketch/UI

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 11 10:02:54 CEST 2010


Author: igor_n
Date: 2010-10-11 10:02:53 +0200 (Mon, 11 Oct 2010)
New Revision: 758

Modified:
   skencil/branches/skencil-0.6/src/Sketch/UI/view.py
Log:
fix for 'fit page to window' to extend slightly view

Modified: skencil/branches/skencil-0.6/src/Sketch/UI/view.py
===================================================================
--- skencil/branches/skencil-0.6/src/Sketch/UI/view.py	2010-10-11 07:08:24 UTC (rev 757)
+++ skencil/branches/skencil-0.6/src/Sketch/UI/view.py	2010-10-11 08:02:53 UTC (rev 758)
@@ -323,7 +323,7 @@
         self.begin_transaction()
         try:
             w, h = self.document.PageSize()
-            self.zoom_fit_rect(Rect(0, 0, w, h).grown(10),
+            self.zoom_fit_rect(Rect(0 - w * .03, 0 - h * .03, w * 1.03, h * 1.03).grown(10),
                                save_viewport = save_viewport)
         finally:
             self.end_transaction()



More information about the Skencil-commits mailing list