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
This commit is contained in:
mcoletti 2004-02-13 22:32:26 +00:00
parent d6fe92ad51
commit 5ff54e4af6

View File

@ -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;
}