Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 13, 2024
1 parent 958d2a6 commit aa56c82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion felt/core/fsl_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1615,7 +1615,8 @@ def singleband_gray_renderer_to_fsl(
"""
steps = [renderer.contrastEnhancement().minimumValue(),
renderer.contrastEnhancement().maximumValue()]
if renderer.gradient() == QgsSingleBandGrayRenderer.Gradient.BlackToWhite:
if (renderer.gradient() ==
QgsSingleBandGrayRenderer.Gradient.BlackToWhite):
colors = ["rgb(0, 0, 0)", "rgb(255, 255, 255)"]
else:
colors = ["rgb(255, 255, 255)", "rgb(0, 0, 0)"]
Expand Down

0 comments on commit aa56c82

Please sign in to comment.