[GRASS-SVN] r51421 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 13 14:10:53 EDT 2012


Author: martinl
Date: 2012-04-13 11:10:53 -0700 (Fri, 13 Apr 2012)
New Revision: 51421

Modified:
   grass/trunk/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: import/link data (avoid multiple map layers in tree)


Modified: grass/trunk/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/dialogs.py	2012-04-13 17:51:05 UTC (rev 51420)
+++ grass/trunk/gui/wxpython/gui_core/dialogs.py	2012-04-13 18:10:53 UTC (rev 51421)
@@ -1684,15 +1684,16 @@
                    'map=%s' % name]
             if UserSettings.Get(group = 'cmd', key = 'rasterOpaque', subkey = 'enabled'):
                 cmd.append('-n')
-                
+            
             item = maptree.AddLayer(ltype = 'raster',
                                     lname = name, lchecked = False,
-                                    lcmd = cmd)
+                                    lcmd = cmd, multiple = False)
         else:
             item = maptree.AddLayer(ltype = 'vector',
                                     lname = name, lchecked = False,
                                     lcmd = ['d.vect',
-                                            'map=%s' % name])
+                                            'map=%s' % name],
+                                    multiple = False)
         
         maptree.mapdisplay.MapWindow.ZoomToMap()
         



More information about the grass-commit mailing list