[GRASS-SVN] r38285 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 6 09:15:32 EDT 2009
Author: martinl
Date: 2009-07-06 09:15:31 -0400 (Mon, 06 Jul 2009)
New Revision: 38285
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: don't cast code if empty
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-07-06 12:19:42 UTC (rev 38284)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-07-06 13:15:31 UTC (rev 38285)
@@ -1663,7 +1663,10 @@
choices = map(str, self.epsgCodeDict.keys())
list.SetItems(choices)
- code = int(list.GetValue())
+ try:
+ code = int(list.GetValue())
+ except ValueError:
+ code = -1
win = self.FindWindowById(self.winId['projection:statusbar:proj4'])
if self.epsgCodeDict.has_key(code):
win.SetValue(self.epsgCodeDict[code][1])
More information about the grass-commit
mailing list