[GRASS-SVN] r30827 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 31 09:45:09 EDT 2008


Author: martinl
Date: 2008-03-31 09:45:08 -0400 (Mon, 31 Mar 2008)
New Revision: 30827

Modified:
   grass/trunk/gui/wxpython/gui_modules/digit.py
Log:
wxGUI: (digit) fix DigitCategoryDialog:OnCancel() check for Digit class instance


Modified: grass/trunk/gui/wxpython/gui_modules/digit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/digit.py	2008-03-31 07:40:14 UTC (rev 30826)
+++ grass/trunk/gui/wxpython/gui_modules/digit.py	2008-03-31 13:45:08 UTC (rev 30827)
@@ -2161,8 +2161,12 @@
     def OnCancel(self, event):
         """Cancel button pressed"""
         self.parent.parent.dialogs['category'] = None
-        self.parent.parent.digit.driver.SetSelected([])
-        self.parent.UpdateMap(render=False)
+        if self.parent.parent.digit:
+            self.parent.parent.digit.driver.SetSelected([])
+            self.parent.UpdateMap(render=False)
+        else:
+            self.parent.parent.OnRender(None)
+            
         self.Close()
 
     def OnApply(self, event):



More information about the grass-commit mailing list