[GRASS-SVN] r34372 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Nov 18 11:32:43 EST 2008
Author: martinl
Date: 2008-11-18 11:32:43 -0500 (Tue, 18 Nov 2008)
New Revision: 34372
Modified:
grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI: fix loading map layers using re
(merge from devbr6, r34370)
Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2008-11-18 16:32:16 UTC (rev 34371)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py 2008-11-18 16:32:43 UTC (rev 34372)
@@ -749,8 +749,11 @@
list = []
for layer in self.map_layers:
- if re.compile('^' + event.GetString()).search(layer):
- list.append(layer)
+ try:
+ if re.compile('^' + event.GetString()).search(layer):
+ list.append(layer)
+ except:
+ pass
self.layers.Set(list)
self.OnSelectAll(None)
More information about the grass-commit
mailing list