Skip to content
Permalink
Browse files
Removed a bit of duplicated code
git-svn-id: http://svn.osgeo.org/qgis/trunk@5543 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jun 24, 2006
1 parent 81dc34d commit bd23b2f85a20538f37393ddbdf5317b9a5a2f509
Showing with 4 additions and 10 deletions.
  1. +4 −10 src/raster/qgsrasterlayer.cpp
@@ -335,23 +335,17 @@ 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

// can't forget the default case
theFileFiltersString += catchallFilter + "All other files (*)";
QgsDebugMsg("Raster filter list built: " + theFileFiltersString);


std::cerr << theFileFiltersString.toLocal8Bit().data() << '\n';

} // buildSupportedRasterFileFilter_()


0 comments on commit bd23b2f

Please sign in to comment.