Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 30, 2024
1 parent 12d90ae commit 228034f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions felt/core/fsl_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ def arrow_to_fsl(
size = 0.5 * (FslConverter.convert_to_pixels(
layer.arrowWidth(),
layer.arrowWidthUnit(),
context)
+ FslConverter.convert_to_pixels(
context) +
FslConverter.convert_to_pixels(
layer.arrowStartWidth(), layer.arrowStartWidthUnit(),
context))

Expand Down Expand Up @@ -685,8 +685,8 @@ def shapeburst_fill_to_fsl(
"""
Converts a QGIS shapeburst fill symbol layer to FSL
"""
color = (layer.color() if (layer.color().isValid()
and layer.color().alphaF() > 0)
color = (layer.color() if (layer.color().isValid() and
layer.color().alphaF() > 0)
else layer.color2())
if not color.isValid() or color.alphaF() == 0:
return []
Expand Down

0 comments on commit 228034f

Please sign in to comment.