Skip to content

Commit

Permalink
convert string settings to float in proof_to_tikz
Browse files Browse the repository at this point in the history
  • Loading branch information
RazinShaikh committed Nov 20, 2023
1 parent 4be636f commit 823b970
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions zxlive/tikz.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@

def proof_to_tikz(proof: ProofModel) -> str:
settings = QSettings("zxlive", "zxlive")
vspace = settings.value("tikz/layout/vspace")
hspace = settings.value("tikz/layout/hspace")
max_width = settings.value("tikz/layout/max-width")
vspace = float(settings.value("tikz/layout/vspace"))
hspace = float(settings.value("tikz/layout/hspace"))
max_width = float(settings.value("tikz/layout/max-width"))
draw_scalar = False

assert isinstance(vspace, float) and isinstance(hspace, float) and isinstance(max_width, float)

xoffset = -max_width
yoffset = -10
idoffset = 0
Expand Down

0 comments on commit 823b970

Please sign in to comment.