Skip to content
Snippets Groups Projects
Commit e2c44b99 authored by Dirk Loss's avatar Dirk Loss
Browse files

Fixed exception in canvas_dump() when fval was 0

parent f22febc0
No related branches found
No related tags found
No related merge requests found
......@@ -468,7 +468,7 @@ Creates an EPS file describing a packet. If filename is not provided a temporary
for fname, fval, fdump in fields:
col = forecolor.next()
ft = pyx.text.text(XSTART, (YTXT-y)*YMUL, r"\font\cmssfont=cmss10\cmssfont{%s}" % tex_escape(fname.name))
if fval is not None:
if isinstance(fval, str):
if len(fval) > 18:
fval = fval[:18]+"[...]"
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment