mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Removed a bit of duplicated code
git-svn-id: http://svn.osgeo.org/qgis/trunk@5543 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
81dc34d6ba
commit
bd23b2f85a
@ -335,16 +335,6 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
|
||||
theFileFiltersString += "JPEG 2000 (" + glob.lower() + " " + glob.upper() + ");;";
|
||||
}
|
||||
|
||||
// A number of drivers support JPEG 2000. Add it in for those.
|
||||
if ( myGdalDriverDescription.startsWith("MrSID")
|
||||
|| myGdalDriverDescription.startsWith("ECW")
|
||||
|| myGdalDriverDescription.startsWith("JPEG2000")
|
||||
|| myGdalDriverDescription.startsWith("JP2KAK") )
|
||||
{
|
||||
QString glob = "*.jp2 *.j2k";
|
||||
theFileFiltersString += "JPEG 2000 (" + glob.lower() + " " + glob.upper() + ");;";
|
||||
}
|
||||
|
||||
myGdalDriverExtension = myGdalDriverLongName = ""; // reset for next driver
|
||||
|
||||
} // each loaded GDAL driver
|
||||
@ -352,6 +342,10 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
|
||||
// can't forget the default case
|
||||
theFileFiltersString += catchallFilter + "All other files (*)";
|
||||
QgsDebugMsg("Raster filter list built: " + theFileFiltersString);
|
||||
|
||||
|
||||
std::cerr << theFileFiltersString.toLocal8Bit().data() << '\n';
|
||||
|
||||
} // buildSupportedRasterFileFilter_()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user