Closed bartbutenaers closed 4 years ago
My thoughts...
<svg />
Or@Steve-Mcl , Or perhaps display an svg containing a text-element “no drawing has been specified” …
Or perhaps display an svg containing a text-element “no drawing has been specified” ...
Yeah, thats seems reasonable
<svg width="200" height="50" xmlns="http://www.w3.org/2000/svg">
<g>
<rect stroke="#000000" id="svg_2" height="50" width="200" y="2.73322" x="2.00563" stroke-width="5" fill="#ff0000"/>
<text font-weight="bold" stroke="#000000" xml:space="preserve" text-anchor="middle" font-family="Sans-serif" font-size="24" id="svg_1" y="35.85669" x="100" stroke-width="0" fill="#000000">SVG is empty</text>
</g>
</svg>
Implemented
When no valid svg element can be found, we will have a null-reference:
Handle this properly