mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 03:54:25 +00:00
svg_loader: changed update order
The gradient was updated before the style, which resulted in only the URL tag being inherited, but the gradient itself was not applied to the node.
This commit is contained in:
parent
5f5b4fdb80
commit
74c9a5f795
1 changed files with 2 additions and 2 deletions
|
@ -3483,10 +3483,10 @@ void SvgLoader::run(unsigned tid)
|
|||
_updateComposite(loaderData.doc, loaderData.doc);
|
||||
if (defs) _updateComposite(loaderData.doc, defs);
|
||||
|
||||
_updateStyle(loaderData.doc, nullptr);
|
||||
|
||||
if (loaderData.gradients.count > 0) _updateGradient(&loaderData, loaderData.doc, &loaderData.gradients);
|
||||
if (defs) _updateGradient(&loaderData, loaderData.doc, &defs->node.defs.gradients);
|
||||
|
||||
_updateStyle(loaderData.doc, nullptr);
|
||||
}
|
||||
root = svgSceneBuild(loaderData.doc, vx, vy, vw, vh, w, h, align, meetOrSlice, svgPath, viewFlag);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue