Skip to content

Commit

Permalink
fix #1053
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaordonselli committed Mar 18, 2024
1 parent b7dc3d9 commit 0c28097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Expand Up @@ -630,7 +630,7 @@ def handleHiddenField(layer, field):


def getRGBAColor(color, alpha):
r, g, b, a = color.split(",")
r, g, b, a = color.split(",")[:4]
a = (float(a) / 255) * alpha
return "'rgba(%s)'" % ",".join([r, g, b, str(a)])

Expand Down

0 comments on commit 0c28097

Please sign in to comment.