Skip to content

Commit e6de7b3

Browse files
author
jef
committedNov 11, 2007

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
136136

137137
QStringList metadataTokens; // essentially the metadata string delimited by '='
138138

139-
QString catchallFilter; // for Any file(*.*), but also for those
139+
QStringList catchallFilter; // for Any file(*.*), but also for those
140140
// drivers with no specific file filter
141141

142142
GDALDriver *jp2Driver = NULL; // first JPEG2000 driver found
@@ -269,7 +269,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
269269
}
270270
else
271271
{
272-
catchallFilter += QString(myGdalDriver->GetDescription()) + " ";
272+
catchallFilter << QString(myGdalDriver->GetDescription());
273273
}
274274
}
275275

@@ -278,7 +278,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
278278
} // each loaded GDAL driver
279279

280280
// can't forget the default case
281-
theFileFiltersString += catchallFilter + tr("and all other files") + " (*)";
281+
theFileFiltersString += catchallFilter.join(", ") + " " + tr("and all other files") + " (*)";
282282
QgsDebugMsg("Raster filter list built: " + theFileFiltersString);
283283
} // buildSupportedRasterFileFilter_()
284284

@@ -374,8 +374,7 @@ QgsRasterLayer::QgsRasterLayer(QString const & path, QString const & baseName)
374374
showDebugOverlayFlag(false),
375375
invertHistogramFlag(false),
376376
stdDevsToPlotDouble(0),
377-
dataProvider(0)
378-
377+
dataProvider(0)
379378
{
380379
userDefinedColorMinMax = false; //defaults needed to bypass stretch
381380
userDefinedGrayMinMax = false;

0 commit comments

Comments
 (0)
Please sign in to comment.