[GRASS-SVN] r41307 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 5 23:51:27 EST 2010
Author: cmbarton
Date: 2010-03-05 23:51:25 -0500 (Fri, 05 Mar 2010)
New Revision: 41307
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py
Log:
Fix autozoom to map in xy location
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py 2010-03-05 23:17:58 UTC (rev 41306)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py 2010-03-06 04:51:25 UTC (rev 41307)
@@ -642,12 +642,9 @@
try:
# set computational region to match selected map and zoom display to region
if maptype == 'cell':
- p = gcmd.Command(['g.region', 'rast=xy_map'])
+ p = gcmd.RunCommand('g.region', rast = xy_map)
elif maptype == 'vector':
- p = gcmd.Command(['g.region', 'vect=xy_map'])
-
- if p.returncode == 0:
- self.parent.Map.region = self.parent.Map.GetRegion()
+ p = gcmd.RunCommand('g.region', vect = xy_map)
except:
pass
More information about the grass-commit
mailing list