Skip to content

Commit

Permalink
Small fix for single band gray renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jan 8, 2012
1 parent 3c7cebe commit 9728e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2657,8 +2657,8 @@ void QgsRasterLayer::setDataProvider( QString const & provider,
mGreenBandName = TRSTRING_NOT_SET; //sensible default
mBlueBandName = TRSTRING_NOT_SET; //sensible default
mTransparencyBandName = TRSTRING_NOT_SET; //sensible default
mDrawingStyle = SingleBandGray; //sensible default
mGrayBandName = bandName( 1 );
setDrawingStyle( SingleBandGray ); //sensible default

// read standard deviations
if ( mContrastEnhancementAlgorithm == QgsContrastEnhancement::StretchToMinimumMaximum )
Expand Down

0 comments on commit 9728e9a

Please sign in to comment.