We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d790bc0 commit 71a799fCopy full SHA for 71a799f
src/core/raster/qgscontrastenhancement.cpp
@@ -63,7 +63,7 @@ QgsContrastEnhancement::QgsContrastEnhancement( const QgsContrastEnhancement& ce
63
mMaximumValue = ce.mMaximumValue;
64
mRasterDataTypeRange = ce.mRasterDataTypeRange;
65
66
- mLookupTableOffset = mMinimumValue * -1;
+ mLookupTableOffset = minimumValuePossible( mRasterDataType ) * -1;
67
68
// setContrastEnhancementAlgorithm sets also QgsContrastEnhancementFunction
69
setContrastEnhancementAlgorithm( ce.mContrastEnhancementAlgorithm, false );
0 commit comments