Explorar o código

wxGUI: fix _getExtPattern
(merge https://trac.osgeo.org/grass/changeset/45274 from relbr64)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45276 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa %!s(int64=14) %!d(string=hai) anos
pai
achega
259d063f23
Modificáronse 1 ficheiros con 2 adicións e 6 borrados
  1. 2 6
      gui/wxpython/gui_modules/gselect.py

+ 2 - 6
gui/wxpython/gui_modules/gselect.py

@@ -21,7 +21,7 @@ Classes:
  - GdalSelect
  - ProjSelect
  
-(C) 2007-2010 by the GRASS Development Team This program is free
+(C) 2007-2011 by the GRASS Development Team This program is free
 software under the GNU General Public License (>=v2). Read the file
 COPYING that comes with GRASS for details.
 
@@ -1252,11 +1252,7 @@ class GdalSelect(wx.Panel):
 
     def _getExtPattern(self, ext):
         """!Get pattern for case-insensitive mask"""
-        pattern = ''
-        for c in ext:
-            pattern += '[' + c + c.upper() + ']'
-
-        return pattern
+        return '*.%s;*.%s' % (ext.lower(), ext.upper())
 
     def OnSettingsLoad(self, event):
         """!Load named settings"""