Commit 96fb62d8 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

graph_draw(): fix bug with pen_width

Fix issue with a global pen_width given for vertices.
parent d989f401
Pipeline #740 passed with stage
in 62 minutes and 45 seconds
......@@ -1341,8 +1341,9 @@ def fit_to_view_ink(g, pos, output_size, vprops, eprops, adjust_aspect=False,
else:
lw = max(lw, 0.1)
return lw
vprops = dict(vprops, pen_width=min_lw(vprops.get("pen_width")))
eprops = dict(eprops, pen_width=min_lw(eprops.get("pen_width")))
vprops = dict(vprops, pen_width=min_lw(vprops.get("pen_width", 0.)))
eprops = dict(eprops, pen_width=min_lw(eprops.get("pen_width", 0.)))
cairo_draw(g, pos, cr, vprops, eprops)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment