Skip to content

Commit

Permalink
Merge pull request #1040 from tomchadwin/1018-leafletstylescriptspy-t…
Browse files Browse the repository at this point in the history
…wo-extra-closing-parenthesis

removes unwanted brackets
  • Loading branch information
riccardoklinger committed Sep 17, 2023
2 parents e853d89 + 435eaee commit c5fd2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qgis2web/leafletStyleScripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ def getSymbolAsStyle(symbol, markerFolder, layer_transparency, interactivity,
# save a colorized svg in the markers folder
# replacing "param(...)" with actual values from QGIS
# and renaming to safe layer name
pColor = getRGBAColor(props["color"], alpha).strip("'"))
pOutline = getRGBAColor(props["outline_color"], alpha).strip("'"))
pColor = getRGBAColor(props["color"], alpha).strip("'")
pOutline = getRGBAColor(props["outline_color"], alpha).strip("'")
with open(sl.path()) as f:
s = f.read()
s = s.replace('param(fill)', pColor)
Expand Down

0 comments on commit c5fd2bc

Please sign in to comment.