Commit 9d0006a4 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

cairo_draw(): Check if vorder is of scalar type

This fixes issue #264
parent a6a09e6b
Pipeline #99 failed with stage
......@@ -30,6 +30,7 @@ import warnings
import numpy
from .. topology import shortest_distance, is_bipartite
from .. import _check_prop_scalar
import cairo
......@@ -608,6 +609,9 @@ def cairo_draw(g, pos, cr, vprops=None, eprops=None, vorder=None, eorder=None,
rendering was complete.
if vorder is not None:
_check_prop_scalar(vorder, name="vorder")
vprops = {} if vprops is None else copy.copy(vprops)
eprops = {} if eprops is None else copy.copy(eprops)
Supports Markdown
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