Skip to content

Commit

Permalink
Fix bug with reading bg image color field
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Nov 17, 2024
1 parent 81aa5ff commit b6934fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fontra/backends/designspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,9 @@ def unpackBackgroundImage(imageDict: dict | None) -> BackgroundImage | None:
return None

t = Transform(*(imageDict.get(k, dv) for k, dv in imageTransformFields))
colorChannels = [float(ch.strip()) for ch in imageDict.get("color", "").split(",")]
colorChannels = [
float(ch.strip()) for ch in imageDict.get("color", "-1").split(",")
]

return BackgroundImage(
identifier=imageDict["fileName"],
Expand Down

0 comments on commit b6934fe

Please sign in to comment.