[GRASS-SVN] r48620 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 5 03:11:37 EDT 2011
Author: martinl
Date: 2011-10-05 00:11:37 -0700 (Wed, 05 Oct 2011)
New Revision: 48620
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
Log:
wxGUI: #1457 (Zoom in Georectify Does not Work)
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py 2011-10-04 22:54:57 UTC (rev 48619)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp_window.py 2011-10-05 07:11:37 UTC (rev 48620)
@@ -1648,7 +1648,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