فهرست منبع

wxGUI: extend import GeoTIFF wildcard to work with double f

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61986 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 سال پیش
والد
کامیت
84c9edd55d
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      gui/wxpython/gui_core/gselect.py

+ 3 - 1
gui/wxpython/gui_core/gselect.py

@@ -1361,7 +1361,9 @@ class GdalSelect(wx.Panel):
         # file
         if not ogr:
             extList = rasterFormatExtension
-            fileMask = '%(name)s (*.%(low)s;*.%(up)s)|*.%(low)s;*.%(up)s|' % {'name': 'GeoTIFF', 'low': 'tif', 'up': 'TIF'}
+            fileMask = ('%(name)s (*.%(low1)s;*.%(low2)s;*.%(up1)s;*.%(up2)s)|'
+                        '*.%(low1)s;*.%(low2)s;*.%(up1)s;*.%(up2)s|' %
+                        {'name': 'GeoTIFF', 'low1': 'tif', 'low2': 'tiff', 'up1': 'TIF', 'up2': 'TIFF'})
         else:
             extList = vectorFormatExtension
             fileMask = '%(name)s (*.%(low)s;*.%(up)s)|*.%(low)s;*.%(up)s|' % {'name': 'ESRI Shapefile', 'low': 'shp', 'up': 'SHP'}