Skip to content

Commit

Permalink
Fix #9641 (broken contrast enhancement)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Feb 25, 2014
1 parent d790bc0 commit 71a799f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgscontrastenhancement.cpp
Expand Up @@ -63,7 +63,7 @@ QgsContrastEnhancement::QgsContrastEnhancement( const QgsContrastEnhancement& ce
mMaximumValue = ce.mMaximumValue;
mRasterDataTypeRange = ce.mRasterDataTypeRange;

mLookupTableOffset = mMinimumValue * -1;
mLookupTableOffset = minimumValuePossible( mRasterDataType ) * -1;

// setContrastEnhancementAlgorithm sets also QgsContrastEnhancementFunction
setContrastEnhancementAlgorithm( ce.mContrastEnhancementAlgorithm, false );
Expand Down

0 comments on commit 71a799f

Please sign in to comment.