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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 5 03:13:29 EDT 2011


Author: martinl
Date: 2011-10-05 00:13:29 -0700 (Wed, 05 Oct 2011)
New Revision: 48621

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py
Log:
wxGUI: #1457 (Zoom in Georectify Does not Work)
       (merge r48620 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-10-05 07:11:37 UTC (rev 48620)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp_window.py	2011-10-05 07:13:29 UTC (rev 48621)
@@ -1619,7 +1619,8 @@
             self.Map.region['center_northing'] = cn
             self.Map.region['ewres'] = (newreg['e'] - newreg['w']) / self.Map.width
             self.Map.region['nsres'] = (newreg['n'] - newreg['s']) / self.Map.height
-            if self.parent.statusbarWin['alignExtent'].IsChecked():
+            if 'alignExtent' not in self.parent.statusbarWin or \
+                    self.parent.statusbarWin['alignExtent'].IsChecked():
                 self.Map.AlignExtentFromDisplay()
             else:
                 for k in ('n', 's', 'e', 'w'):



More information about the grass-commit mailing list