[GRASS-SVN] r31969 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 2 10:01:35 EDT 2008
Author: martinl
Date: 2008-07-02 10:01:35 -0400 (Wed, 02 Jul 2008)
New Revision: 31969
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: related to errors at querying (trac #212)
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2008-07-02 13:50:31 UTC (rev 31968)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2008-07-02 14:01:35 UTC (rev 31969)
@@ -1229,16 +1229,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