mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
svg_loader: fixing cdata block reading
The CData block is read if it's inside the style tag. In a case when the CData block was just after the style block, the data was still read, although it shouldn't be. Fixed.
This commit is contained in:
parent
fbc596c09b
commit
4a7310756d
1 changed files with 1 additions and 1 deletions
|
@ -2725,7 +2725,6 @@ static void _svgLoaderParserXmlOpen(SvgLoaderData* loader, const char* content,
|
||||||
GradientFactoryMethod gradientMethod;
|
GradientFactoryMethod gradientMethod;
|
||||||
SvgNode *node = nullptr, *parent = nullptr;
|
SvgNode *node = nullptr, *parent = nullptr;
|
||||||
loader->level++;
|
loader->level++;
|
||||||
loader->style = false;
|
|
||||||
attrs = simpleXmlFindAttributesTag(content, length);
|
attrs = simpleXmlFindAttributesTag(content, length);
|
||||||
|
|
||||||
if (!attrs) {
|
if (!attrs) {
|
||||||
|
@ -2835,6 +2834,7 @@ static void _svgLoaderParserXmlCssStyle(SvgLoaderData* loader, const char* conte
|
||||||
free(tag);
|
free(tag);
|
||||||
free(name);
|
free(name);
|
||||||
}
|
}
|
||||||
|
loader->style = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue