浏览代码

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 14 年之前
父节点
当前提交
259d063f23
共有 1 个文件被更改,包括 2 次插入6 次删除
  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"""