[GRASS-SVN] r47775 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Aug 19 08:02:02 EDT 2011


Author: martinl
Date: 2011-08-19 05:02:02 -0700 (Fri, 19 Aug 2011)
New Revision: 47775

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/vdigit.py
Log:
wxGUI/vdigit: fix VDigitCategoryDialog
             (merge r47773 from trunk)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/vdigit.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/vdigit.py	2011-08-19 12:01:02 UTC (rev 47774)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/vdigit.py	2011-08-19 12:02:02 UTC (rev 47775)
@@ -830,7 +830,8 @@
         """
         # parent
         self.parent = parent # mapdisplay.BufferedWindow class instance
-
+        self.digit = parent.digit
+        
         # map name
         self.map = map
 
@@ -848,7 +849,7 @@
                     self.cats[line][layer] = list(cats[line][layer])
             
             layers = []
-            for layer in self.parent.parent.digit.GetLayers():
+            for layer in self.digit.GetLayers():
                 layers.append(str(layer))
         
         # make copy of cats (used for 'reload')
@@ -1158,8 +1159,8 @@
         """!Cancel button pressed
         """
         self.parent.parent.dialogs['category'] = None
-        if self.parent.parent.digit:
-            self.parent.parent.digit.GetDisplay().SetSelected([])
+        if self.digit:
+            self.digit.GetDisplay().SetSelected([])
             self.parent.UpdateMap(render = False)
         else:
             self.parent.parent.OnRender(None)
@@ -1202,8 +1203,8 @@
                     else:
                         add = False
                         
-                    newfid = self.parent.parent.digit.SetLineCats(fid, layer,
-                                                                      catList, add)
+                    newfid = self.digit.SetLineCats(fid, layer,
+                                                    catList, add)
                     if len(self.cats.keys()) == 1:
                         self.fidText.SetLabel("%d" % newfid)
                     else:



More information about the grass-commit mailing list