mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
svg_loader: use node fixed
By mistake the use node was improperly transformed and/or displayed for a reference node other than a symbol node.
This commit is contained in:
parent
b16d60d509
commit
ed3608b39b
1 changed files with 2 additions and 2 deletions
|
@ -626,8 +626,8 @@ static unique_ptr<Scene> _useBuildHelper(const SvgNode* node, const Box& vBox, c
|
|||
|
||||
finalScene = move(root);
|
||||
}
|
||||
} else if (node->node.use.x != 0.0f || node->node.use.y != 0.0f) {
|
||||
scene->transform(mUseTransform);
|
||||
} else {
|
||||
if (!mathIdentity((const Matrix*)(&mUseTransform))) scene->transform(mUseTransform);
|
||||
finalScene = move(scene);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue