From a87bf654f1b621b9d55b3e7955f325db69d10340 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 6 Mar 2024 15:50:51 +0100 Subject: [PATCH] avoid using internal `.data` field --- test/svg.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/svg.jl b/test/svg.jl index 4215af93..3dba3a4d 100644 --- a/test/svg.jl +++ b/test/svg.jl @@ -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