Skip to content

Commit

Permalink
[skin]
Browse files Browse the repository at this point in the history
* correction if "f" in parseCoordinate to support legacy scaling

However, we recommend to use scaling via "resolution" attribute.
  • Loading branch information
jbleyel committed Jan 29, 2023
1 parent 90537c9 commit aca0a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/skin.py
Expand Up @@ -379,7 +379,7 @@ def scaleNumbers(coordinate, scale):
if "h" in val:
val = val.replace("h", "*%s" % fonts[font][2])
if "f" in val:
val = val.replace("f", "*%s" % getSkinFactor())
val = val.replace("f", "%s" % getSkinFactor())
try:
result = int(val) # For speed try a simple number first.
except ValueError:
Expand Down

0 comments on commit aca0a80

Please sign in to comment.