[GRASS-SVN] r61986 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 15 19:31:21 PDT 2014


Author: annakrat
Date: 2014-09-15 19:31:21 -0700 (Mon, 15 Sep 2014)
New Revision: 61986

Modified:
   grass/trunk/gui/wxpython/gui_core/gselect.py
Log:
wxGUI: extend import GeoTIFF wildcard to work with double f

Modified: grass/trunk/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/gselect.py	2014-09-15 22:34:24 UTC (rev 61985)
+++ grass/trunk/gui/wxpython/gui_core/gselect.py	2014-09-16 02:31:21 UTC (rev 61986)
@@ -1361,7 +1361,9 @@
         # 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'}



More information about the grass-commit mailing list