mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-20 06:52:03 +00:00
svg_loader: update style in defs
In the defs node the style was not updated, hence the inheritance wasn't applied causing wrong results.
This commit is contained in:
parent
9230fc1f85
commit
4f9f125454
1 changed files with 1 additions and 0 deletions
|
@ -3511,6 +3511,7 @@ void SvgLoader::run(unsigned tid)
|
|||
if (defs) _updateComposite(loaderData.doc, defs);
|
||||
|
||||
_updateStyle(loaderData.doc, nullptr);
|
||||
if (defs) _updateStyle(defs, nullptr);
|
||||
|
||||
if (loaderData.gradients.count > 0) _updateGradient(&loaderData, loaderData.doc, &loaderData.gradients);
|
||||
if (defs) _updateGradient(&loaderData, loaderData.doc, &defs->node.defs.gradients);
|
||||
|
|
Loading…
Add table
Reference in a new issue