Skip to content

Commit

Permalink
Change filter string for DTED raster (patch #1925 provided by kyle)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13273 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 7, 2010
1 parent fa23471 commit 856171f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter( QString & theFileFiltersStr
// "DMD_EXTENSION=.*". We'll also store the long name of the
// driver, which will be found in DMD_LONGNAME, which will have the
// same form.

// start with the default case
theFileFiltersString = tr( "All files (*)" );

Expand Down Expand Up @@ -414,8 +414,10 @@ void QgsRasterLayer::buildSupportedRasterFileFilter( QString & theFileFiltersStr
}
else if ( myGdalDriverDescription.startsWith( "DTED" ) )
{
// DTED use "*.dt0"
// DTED use "*.dt0, *.dt1, *.dt2"
QString glob = "*.dt0";
glob += " *.dt1";
glob += " *.dt2";
theFileFiltersString += ";;" + myGdalDriverLongName + " (" + glob.toLower() + " " + glob.toUpper() + ")";
}
else if ( myGdalDriverDescription.startsWith( "MrSID" ) )
Expand Down Expand Up @@ -5550,8 +5552,8 @@ bool QgsRasterImageBuffer::nextScanLine( QRgb** imageScanLine, void** rasterScan
{
if ( !mValid )
return false;
if( !mCurrentImage && !mCurrentGDALData )

if ( !mCurrentImage && !mCurrentGDALData )
{
return false;
}
Expand Down

0 comments on commit 856171f

Please sign in to comment.