From Eric Wing, compile fixes.

This commit is contained in:
Robert Osfield
2005-11-15 21:47:24 +00:00
parent 4e580f46cf
commit 47fcfa4cc5
3 changed files with 3 additions and 3 deletions

View File

@@ -513,7 +513,7 @@ void DataSet::SourceData::readImage(DestinationData& destination)
// as RGB.
if( hasRGB )
{
GDALRasterBand* bandRed = bandRed = _gdalDataSet->GetRasterBand(1);
GDALRasterBand* bandRed = _gdalDataSet->GetRasterBand(1);
GDALRasterBand* bandGreen = _gdalDataSet->GetRasterBand(2);
GDALRasterBand* bandBlue = _gdalDataSet->GetRasterBand(3);
GDALRasterBand* bandAlpha = hasAlpha ? _gdalDataSet->GetRasterBand(4) : 0;