[GRASS-SVN] r64463 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 4 09:02:16 PST 2015


Author: martinl
Date: 2015-02-04 09:02:16 -0800 (Wed, 04 Feb 2015)
New Revision: 64463

Modified:
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI/lmgr: fix OnCopy()

Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2015-02-04 13:30:10 UTC (rev 64462)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2015-02-04 17:02:16 UTC (rev 64463)
@@ -797,12 +797,15 @@
         
         if ltype == 'raster':
             key = 'raster'
+            module = 'rast'
             label = _('Raster map')
         elif ltype == 'vector':
             key = 'vector'
+            module = 'vect'
             label = _('Vector map')
         elif ltype == '3d-raster':
             key = 'raster_3d'
+            module = 'rast3d'
             label = _('3D raster map')
         else:
             GError(_("Unsupported map type <%s>") % ltype, parent = self)
@@ -848,7 +851,7 @@
             
         lnameDst += '@' + currentMapset
         # add copied map to the layer tree
-        self.AddLayer(ltype, lname = lnameDst, lcmd = ['d.%s' % key, 'map=%s' % lnameDst])
+        self.AddLayer(ltype, lname = lnameDst, lcmd = ['d.%s' % module, 'map=%s' % lnameDst])
 
     def OnHistogram(self, event):
         """Plot histogram for given raster map layer



More information about the grass-commit mailing list