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:
Mira Grudzinska 2024-04-22 17:30:30 +02:00 committed by Hermet Park
parent 8d81ad360f
commit 08fe14280d

View file

@ -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));