mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 14:41:50 +00:00
svg_loader: group tags misinterpreted as parent nodes
Group tags in a format <tag .../> finds no application to the rest of the svg file and should be skipped.
This commit is contained in:
parent
0c6c37b616
commit
922e3e10c0
1 changed files with 1 additions and 0 deletions
|
@ -2539,6 +2539,7 @@ static void _svgLoaderParserXmlOpen(SvgLoaderData* loader, const char* content,
|
|||
|
||||
if ((method = _findGroupFactory(tagName))) {
|
||||
//Group
|
||||
if (empty) return;
|
||||
if (!loader->doc) {
|
||||
if (strcmp(tagName, "svg")) return; //Not a valid svg document
|
||||
node = method(loader, nullptr, attrs, attrsLength);
|
||||
|
|
Loading…
Add table
Reference in a new issue