Skip to content

Commit 901ad5b

Browse files
author
g_j_m
committed
Removed a bit of duplicated code
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5543 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7e3491e commit 901ad5b

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/raster/qgsrasterlayer.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,23 +335,17 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
335335
theFileFiltersString += "JPEG 2000 (" + glob.lower() + " " + glob.upper() + ");;";
336336
}
337337

338-
// A number of drivers support JPEG 2000. Add it in for those.
339-
if ( myGdalDriverDescription.startsWith("MrSID")
340-
|| myGdalDriverDescription.startsWith("ECW")
341-
|| myGdalDriverDescription.startsWith("JPEG2000")
342-
|| myGdalDriverDescription.startsWith("JP2KAK") )
343-
{
344-
QString glob = "*.jp2 *.j2k";
345-
theFileFiltersString += "JPEG 2000 (" + glob.lower() + " " + glob.upper() + ");;";
346-
}
347-
348338
myGdalDriverExtension = myGdalDriverLongName = ""; // reset for next driver
349339

350340
} // each loaded GDAL driver
351341

352342
// can't forget the default case
353343
theFileFiltersString += catchallFilter + "All other files (*)";
354344
QgsDebugMsg("Raster filter list built: " + theFileFiltersString);
345+
346+
347+
std::cerr << theFileFiltersString.toLocal8Bit().data() << '\n';
348+
355349
} // buildSupportedRasterFileFilter_()
356350

357351

0 commit comments

Comments
 (0)