[GRASS-SVN] r36775 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 18 07:48:22 EDT 2009


Author: martinl
Date: 2009-04-18 07:48:22 -0400 (Sat, 18 Apr 2009)
New Revision: 36775

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
Log:
Fix wxGUI location wizard: Search in description with 0 hits (trac #554)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py	2009-04-18 11:39:02 UTC (rev 36774)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py	2009-04-18 11:48:22 UTC (rev 36775)
@@ -621,7 +621,7 @@
         """
         if str == '':
             self.Populate(self.sourceData)
-            return None
+            return []
 
         data = []
         str = str.lower()
@@ -638,7 +638,7 @@
         if len(data) > 0:
             return data[0]
         else:
-            return None
+            return []
 
 class ProjTypePage(TitledPage):
     """



More information about the grass-commit mailing list