From Jason Beverage, fix to setting of grey band.

This commit is contained in:
Robert Osfield 2005-07-08 19:45:18 +00:00
parent 3943a14f0d
commit fafbb43bf9

View File

@ -830,7 +830,7 @@ void DataSet::SourceData::readHeightField(DestinationData& destination)
else if (band->GetColorInterpretation()==GCI_GreenBand) bandGreen = band;
else if (band->GetColorInterpretation()==GCI_BlueBand) bandBlue = band;
else if (band->GetColorInterpretation()==GCI_AlphaBand) bandAlpha = band;
else bandGray = band;
else if (bandGray == 0) bandGray = band;
}