[GRASS-SVN] r31968 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 2 09:50:31 EDT 2008
Author: martinl
Date: 2008-07-02 09:50:31 -0400 (Wed, 02 Jul 2008)
New Revision: 31968
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: errors at querying (trac #212) [merged from trunk, r31967]
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py 2008-07-02 13:49:01 UTC (rev 31967)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/mapdisp.py 2008-07-02 13:50:31 UTC (rev 31968)
@@ -1117,16 +1117,17 @@
self.parent.dialogs['attributes'].UpdateDialog(cats=digitClass.GetLineCats(),
line=line)
- line = self.parent.dialogs['attributes'].GetLine()
- if self.parent.dialogs['attributes'].mapDBInfo and line:
- # highlight feature & re-draw map
- digitClass.driver.SetSelected([line])
- if not self.parent.dialogs['attributes'].IsShown():
- self.parent.dialogs['attributes'].Show()
- else:
- digitClass.driver.SetSelected([])
- if self.parent.dialogs['attributes'].IsShown():
- self.parent.dialogs['attributes'].Hide()
+ if self.parent.dialogs['attributes']:
+ line = self.parent.dialogs['attributes'].GetLine()
+ if self.parent.dialogs['attributes'].mapDBInfo and line:
+ # highlight feature & re-draw map
+ digitClass.driver.SetSelected([line])
+ if not self.parent.dialogs['attributes'].IsShown():
+ self.parent.dialogs['attributes'].Show()
+ else:
+ digitClass.driver.SetSelected([])
+ if self.parent.dialogs['attributes'].IsShown():
+ self.parent.dialogs['attributes'].Hide()
else: # displayCats
if self.parent.dialogs['category'] is None:
More information about the grass-commit
mailing list