[GRASS-SVN] r41968 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Apr 22 04:35:03 EDT 2010
Author: martinl
Date: 2010-04-22 04:34:47 -0400 (Thu, 22 Apr 2010)
New Revision: 41968
Modified:
grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI: zoom to imported map
Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2010-04-22 08:18:08 UTC (rev 41967)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2010-04-22 08:34:47 UTC (rev 41968)
@@ -1408,14 +1408,15 @@
if UserSettings.Get(group='cmd', key='rasterOpaque', subkey='enabled'):
cmd.append('-n')
- maptree.AddLayer(ltype='raster',
- lname=name,
- lcmd=cmd)
+ item = maptree.AddLayer(ltype='raster',
+ lname=name,
+ lcmd=cmd)
else:
- maptree.AddLayer(ltype='vector',
- lname=name,
- lcmd=['d.vect',
- 'map=%s' % name])
+ item = maptree.AddLayer(ltype='vector',
+ lname=name,
+ lcmd=['d.vect',
+ 'map=%s' % name])
+ maptree.mapdisplay.MapWindow.ZoomToMap()
def OnAbort(self, event):
"""!Abort running import
More information about the grass-commit
mailing list