Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix sign of safety correction
- Loading branch information
|
@@ -100,7 +100,7 @@ bool QgsColorRampShader::shade( double theValue, int* theReturnRedValue, int* th |
|
|
if ( rangeValue > 0 ) |
|
|
{ |
|
|
int lutSize = 256; // TODO: test if speed can be increased with a different LUT size |
|
|
mLUTFactor = ( lutSize + 0.0000001 ) / rangeValue; // increase slightly to make sure last LUT category is correct |
|
|
mLUTFactor = ( lutSize - 0.0000001 ) / rangeValue; // decrease slightly to make sure last LUT category is correct |
|
|
idx = 0; |
|
|
double val; |
|
|
mLUT.reserve( lutSize ); |
|
|
|
@@ -130,7 +130,7 @@ class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction |
|
|
/** Maximum size of the color cache. The color cache could eat a ton of |
|
|
* memory if you have 32-bit data |
|
|
* @deprecated will be removed in QGIS 3.0 */ |
|
|
Q_DECL_DEPRECATED int mMaximumColorCacheSize; |
|
|
int mMaximumColorCacheSize; |
|
|
|
|
|
/** Do not render values out of range */ |
|
|
bool mClip; |
|
|