[GRASS-SVN] r38287 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 6 09:28:12 EDT 2009
Author: martinl
Date: 2009-07-06 09:28:12 -0400 (Mon, 06 Jul 2009)
New Revision: 38287
Modified:
grass/trunk/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: don't cast code if empty
(merge from devbr6, r38285)
Modified: grass/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-07-06 13:23:08 UTC (rev 38286)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-07-06 13:28:12 UTC (rev 38287)
@@ -1654,7 +1654,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