[Thuban-commits] r2893 - trunk/thuban/Thuban/UI

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 14 13:29:15 CEST 2011


Author: bricks
Date: 2011-07-14 13:29:15 +0200 (Thu, 14 Jul 2011)
New Revision: 2893

Modified:
   trunk/thuban/Thuban/UI/viewport.py
Log:
Else clause can be omitted as Bernhard suggested



Modified: trunk/thuban/Thuban/UI/viewport.py
===================================================================
--- trunk/thuban/Thuban/UI/viewport.py	2011-07-14 10:46:42 UTC (rev 2892)
+++ trunk/thuban/Thuban/UI/viewport.py	2011-07-14 11:29:15 UTC (rev 2893)
@@ -381,8 +381,8 @@
         if not bbox:
             #There are no layers so we have nothing to scale
             return scale, scale
-        else:
-            llx, lly, urx, ury = bbox
+
+        llx, lly, urx, ury = bbox
         pwidth = float(urx - llx)
         pheight = float(ury - lly)
 



More information about the Thuban-commits mailing list