[GRASS-SVN] r66785 - in grass/trunk/gui/wxpython: lmgr vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 11 08:15:44 PST 2015
Author: martinl
Date: 2015-11-11 08:15:44 -0800 (Wed, 11 Nov 2015)
New Revision: 66785
Modified:
grass/trunk/gui/wxpython/lmgr/frame.py
grass/trunk/gui/wxpython/vdigit/toolbars.py
Log:
wxGUI: fix creating new vector map from digitizer and menu (trunk only issue)
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2015-11-11 15:50:30 UTC (rev 66784)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2015-11-11 16:15:44 UTC (rev 66785)
@@ -1067,8 +1067,8 @@
if name and dlg.IsChecked('add'):
# add layer to map layer tree
self.GetLayerTree().AddLayer(ltype = 'vector',
- lname = name,
- lcmd = ['d.vect', 'map=%s' % name])
+ lname = name, lchecked=True,
+ lcmd = ['d.vect', 'map=%s' % name])
dlg.Destroy()
def OnSystemInfo(self, event):
Modified: grass/trunk/gui/wxpython/vdigit/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/toolbars.py 2015-11-11 15:50:30 UTC (rev 66784)
+++ grass/trunk/gui/wxpython/vdigit/toolbars.py 2015-11-11 16:15:44 UTC (rev 66785)
@@ -6,7 +6,7 @@
List of classes:
- toolbars::VDigitToolbar
-(C) 2007-2014 by the GRASS Development Team
+(C) 2007-2015 by the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
@@ -799,7 +799,7 @@
if self._giface.GetLayerTree():
mapName = dlg.GetName() + '@' + grass.gisenv()['MAPSET']
self._giface.GetLayerList().AddLayer(ltype='vector',
- name=mapName,
+ name=mapName, checked=True,
cmd=['d.vect', 'map=%s' % mapName])
vectLayers = self.UpdateListOfLayers(updateTool = True)
More information about the grass-commit
mailing list