[GRASS-SVN] r34370 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 18 11:12:58 EST 2008


Author: martinl
Date: 2008-11-18 11:12:58 -0500 (Tue, 18 Nov 2008)
New Revision: 34370

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI: fix loading map layers using re


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py	2008-11-18 14:25:20 UTC (rev 34369)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gdialogs.py	2008-11-18 16:12:58 UTC (rev 34370)
@@ -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