[GRASS-SVN] r31970 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 2 10:02:47 EDT 2008


Author: martinl
Date: 2008-07-02 10:02:47 -0400 (Wed, 02 Jul 2008)
New Revision: 31970

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: related to errors at querying (trac #212) [merged from trunk, r31969]


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2008-07-02 14:01:35 UTC (rev 31969)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py	2008-07-02 14:02:47 UTC (rev 31970)
@@ -1165,16 +1165,17 @@
                             self.parent.dialogs['category'].UpdateDialog(cats=digitClass.GetLineCats(),
                                                                      line=line)
 
-                    line = self.parent.dialogs['category'].GetLine()
-                    if line:
-                        # highlight feature & re-draw map
-                        digitClass.driver.SetSelected([line])
-                        if not self.parent.dialogs['category'].IsShown():
-                            self.parent.dialogs['category'].Show()
-                    else:
-                        digitClass.driver.SetSelected([])
-                        if self.parent.dialogs['category'].IsShown():
-                            self.parent.dialogs['category'].Hide()
+                    if self.parent.dialogs['category']:
+                        line = self.parent.dialogs['category'].GetLine()
+                        if line:
+                            # highlight feature & re-draw map
+                            digitClass.driver.SetSelected([line])
+                            if not self.parent.dialogs['category'].IsShown():
+                                self.parent.dialogs['category'].Show()
+                        else:
+                            digitClass.driver.SetSelected([])
+                            if self.parent.dialogs['category'].IsShown():
+                                self.parent.dialogs['category'].Hide()
 
                 self.UpdateMap(render=False)
 



More information about the grass-commit mailing list