[GRASS-SVN] r44758 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Dec 29 09:47:42 EST 2010
Author: martinl
Date: 2010-12-29 06:47:42 -0800 (Wed, 29 Dec 2010)
New Revision: 44758
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: fix editable mode for interactive query
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2010-12-29 14:39:22 UTC (rev 44757)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2010-12-29 14:47:42 UTC (rev 44758)
@@ -1484,11 +1484,12 @@
digitToolbar = self.toolbars['vdigit']
if self.tree.layer_selected:
- layer_selected = self.tree.GetPyData(self.tree.layer_selected)[0]['maplayer']
- if layer_selected.GetType() != 'vector' or \
- (digitToolbar and \
- digitToolbar.GetLayer() == layer_selected):
- modify.Enable(False)
+ mapLayer = self.tree.GetPyData(self.tree.layer_selected)[0]['maplayer']
+ if mapLayer.GetType() == 'vector' and \
+ mapLayer.GetMapset() == grass.gisenv()['MAPSET'] and \
+ (not digitToolbar or (digitToolbar and \
+ digitToolbar.GetLayer() != mapLayer)):
+ modify.Enable(True)
else:
if action == "modifyAttrb":
modify.Check(True)
More information about the grass-commit
mailing list