Skip to content

Commit

Permalink
avoid using internal .data field
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Mar 6, 2024
1 parent 8e7e1a2 commit a87bf65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/svg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using Measures
[context(), fill("green"), circle([0.25, 0.75], [0.5], [0.25])])
img = SVG(8cm, 6cm, false)
draw(img, c)
svgxml = root(parsexml(String(img.out.data)))
svgxml = root(parsexml(String(take!(img.out)))
# get all grouped values that have the fill attribute
fillcolors = nodecontent.(findall("//ns:g[@fill]/@fill", svgxml, ["ns"=>namespace(svgxml)]))
# there should only be a single color (because green should clobber the red
Expand Down

0 comments on commit a87bf65

Please sign in to comment.