Skip to content

Commit

Permalink
Merge pull request #60034 from raymondnijssen/fix_typo
Browse files Browse the repository at this point in the history
fix typo: contrastEnhancementAlgorithm() 254 -> 255
  • Loading branch information
m-kuhn authored Dec 31, 2024
2 parents 834b94b + 0706370 commit 25858cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Returns the minimum value for the contrast enhancement range.

int enhanceContrast( double value );
%Docstring
Applies the contrast enhancement to a ``value``. Return values are 0 - 254, -1 means the pixel was clipped and should not be displayed.
Applies the contrast enhancement to a ``value``. Return values are 0 - 255, -1 means the pixel was clipped and should not be displayed.
%End

bool isValueInDisplayableRange( double value );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Returns the minimum value for the contrast enhancement range.

int enhanceContrast( double value );
%Docstring
Applies the contrast enhancement to a ``value``. Return values are 0 - 254, -1 means the pixel was clipped and should not be displayed.
Applies the contrast enhancement to a ``value``. Return values are 0 - 255, -1 means the pixel was clipped and should not be displayed.
%End

bool isValueInDisplayableRange( double value );
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgscontrastenhancement.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class CORE_EXPORT QgsContrastEnhancement
ContrastEnhancementAlgorithm contrastEnhancementAlgorithm() const { return mContrastEnhancementAlgorithm; }

/**
* Applies the contrast enhancement to a \a value. Return values are 0 - 254, -1 means the pixel was clipped and should not be displayed.
* Applies the contrast enhancement to a \a value. Return values are 0 - 255, -1 means the pixel was clipped and should not be displayed.
*/
int enhanceContrast( double value );

Expand Down

0 comments on commit 25858cc

Please sign in to comment.