mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
svg_loader: copy display property
The display property was not copied along with other node properties. This caused incorrect rendering of an object with display=none if accessed through a use tag.
This commit is contained in:
parent
8d81ad360f
commit
08fe14280d
1 changed files with 1 additions and 0 deletions
|
@ -3025,6 +3025,7 @@ static void _styleCopy(SvgStyleProperty* to, const SvgStyleProperty* from)
|
||||||
|
|
||||||
static void _copyAttr(SvgNode* to, const SvgNode* from)
|
static void _copyAttr(SvgNode* to, const SvgNode* from)
|
||||||
{
|
{
|
||||||
|
to->display = from->display;
|
||||||
//Copy matrix attribute
|
//Copy matrix attribute
|
||||||
if (from->transform) {
|
if (from->transform) {
|
||||||
to->transform = (Matrix*)malloc(sizeof(Matrix));
|
to->transform = (Matrix*)malloc(sizeof(Matrix));
|
||||||
|
|
Loading…
Add table
Reference in a new issue