Skip to content

Commit

Permalink
Fixed bug where settings of type float couldn't be read, which broke …
Browse files Browse the repository at this point in the history
…the exporting of proofs to tikz
  • Loading branch information
jvdwetering committed Aug 22, 2024
1 parent e04e3c7 commit d26a0c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zxlive/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def get_settings_value(arg: str, _type: Type[T], default: T | None = None, setti
if _type == int:
val = _settings.value(arg, default)
return int(str(val))
if _type == float:
val = _settings.value(arg, default)
return float(str(val))
if not isinstance(val := _settings.value(arg, default), _type):
if default is not None:
return default
Expand Down

0 comments on commit d26a0c1

Please sign in to comment.