mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
d6fe92ad51
commit
5ff54e4af6
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user