[GRASS-SVN] r57288 - grass/trunk/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 26 20:04:55 PDT 2013
Author: turek
Date: 2013-07-26 20:04:55 -0700 (Fri, 26 Jul 2013)
New Revision: 57288
Modified:
grass/trunk/gui/wxpython/vdigit/mapwindow.py
Log:
vdigit mapwin: missing self.tree quick fix
Modified: grass/trunk/gui/wxpython/vdigit/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/mapwindow.py 2013-07-27 01:36:53 UTC (rev 57287)
+++ grass/trunk/gui/wxpython/vdigit/mapwindow.py 2013-07-27 03:04:55 UTC (rev 57288)
@@ -40,6 +40,11 @@
self.toolbar = self.parent.GetToolbar('vdigit')
self.digit = None # wxvdigit.IVDigit
+ if hasattr(giface, "GetLayerTree"):
+ self.tree = giface.GetLayerTree()
+ else:
+ self.tree = None
+
self.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown)
def GetDisplay(self):
More information about the grass-commit
mailing list