[GRASS-SVN] r64464 - grass/branches/releasebranch_7_0/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 4 09:04:51 PST 2015
Author: martinl
Date: 2015-02-04 09:04:51 -0800 (Wed, 04 Feb 2015)
New Revision: 64464
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py
Log:
(bugfix) wxGUI/lmgr: fix OnCopy()
(merge r64463 from trunk)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py 2015-02-04 17:02:16 UTC (rev 64463)
+++ grass/branches/releasebranch_7_0/gui/wxpython/lmgr/layertree.py 2015-02-04 17:04:51 UTC (rev 64464)
@@ -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