From 5ff54e4af602e0c24cc25168979ccb807a84793b Mon Sep 17 00:00:00 2001 From: mcoletti Date: Fri, 13 Feb 2004 22:32:26 +0000 Subject: [PATCH] Fixed bug whereby some supported raster formats weren't getting included in the open raster layer file dialog filter list. git-svn-id: http://svn.osgeo.org/qgis/trunk@833 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/qgisapp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qgisapp.cpp b/src/qgisapp.cpp index 9c8f97633a1..33a98aa8726 100644 --- a/src/qgisapp.cpp +++ b/src/qgisapp.cpp @@ -666,7 +666,8 @@ void QgisApp::addLayer(QStringList const &theLayerQStringList) These are GDAL driver description strings. */ -static const char *const supportedRasterFormats_[] = { "SDTS", +static const char *const supportedRasterFormats_[] = { + "SDTS", "AIG", "AAIGrid", "GTiff", @@ -690,7 +691,7 @@ static bool isSupportedRasterDriver_(QString const &driverName) while (supportedRasterFormats_[i][0]) // while not end of string list { - if (driverName == supportedRasterFormats_[i]) + if ( driverName.startsWith(supportedRasterFormats_[i]) ) { return true; }