Skip to content

Commit

Permalink
use comma as delimiter in all part of raster fileformat list
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7375 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 11, 2007
1 parent e3a29b2 commit e6de7b3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -136,7 +136,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri

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

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

GDALDriver *jp2Driver = NULL; // first JPEG2000 driver found
Expand Down Expand Up @@ -269,7 +269,7 @@ void QgsRasterLayer::buildSupportedRasterFileFilter(QString & theFileFiltersStri
}
else
{
catchallFilter += QString(myGdalDriver->GetDescription()) + " ";
catchallFilter << QString(myGdalDriver->GetDescription());
}
}

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

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

Expand Down Expand Up @@ -374,8 +374,7 @@ QgsRasterLayer::QgsRasterLayer(QString const & path, QString const & baseName)
showDebugOverlayFlag(false),
invertHistogramFlag(false),
stdDevsToPlotDouble(0),
dataProvider(0)

dataProvider(0)
{
userDefinedColorMinMax = false; //defaults needed to bypass stretch
userDefinedGrayMinMax = false;
Expand Down

0 comments on commit e6de7b3

Please sign in to comment.