mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
svg_loader: copy the use node properties
A bug was observed when a 'use' node was referenced in another 'use' node. @Issue: https://github.com/thorvg/thorvg/issues/1451
This commit is contained in:
parent
9d9f38c875
commit
40ef9031ba
1 changed files with 10 additions and 0 deletions
|
@ -2934,6 +2934,16 @@ static void _copyAttr(SvgNode* to, const SvgNode* from)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case SvgNodeType::Use: {
|
||||
to->node.use.x = from->node.use.x;
|
||||
to->node.use.y = from->node.use.y;
|
||||
to->node.use.w = from->node.use.w;
|
||||
to->node.use.h = from->node.use.h;
|
||||
to->node.use.isWidthSet = from->node.use.isWidthSet;
|
||||
to->node.use.isHeightSet = from->node.use.isHeightSet;
|
||||
to->node.use.symbol = from->node.use.symbol;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue