[GRASS-SVN] r48034 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 1 11:12:34 EDT 2011


Author: martinl
Date: 2011-09-01 08:12:34 -0700 (Thu, 01 Sep 2011)
New Revision: 48034

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
Log:
mmetz: BufferedWindow has no region
       (merge r48032 & r48033 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2011-09-01 15:11:28 UTC (rev 48033)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2011-09-01 15:12:34 UTC (rev 48034)
@@ -1607,9 +1607,9 @@
         # if new region has been calculated, set the values
         if newreg != {}:
             # LL locations
-            if self.parent.Map.projinfo['proj'] == 'll':
-                self.region['n'] = min(self.region['n'], 90.0)
-                self.region['s'] = max(self.region['s'], -90.0)
+            if self.Map.projinfo['proj'] == 'll':
+                self.Map.region['n'] = min(self.Map.region['n'], 90.0)
+                self.Map.region['s'] = max(self.Map.region['s'], -90.0)
             
             ce = newreg['w'] + (newreg['e'] - newreg['w']) / 2
             cn = newreg['s'] + (newreg['n'] - newreg['s']) / 2



More information about the grass-commit mailing list