svg: fix url property

If 'fill="url(#image)"' and defs with id 'image' was not found, the paint was
improperly filled with color.
This commit is contained in:
Michal Maciola 2021-09-21 16:47:20 +02:00 committed by Mira Grudzinska
parent 4589196689
commit 702f452c6c

View file

@ -255,6 +255,8 @@ static void _applyProperty(SvgNode* node, Shape* vg, float vx, float vy, float v
auto radial = _applyRadialGradientProperty(style->fill.paint.gradient, vg, vx, vy, vw, vh, style->fill.opacity);
vg->fill(move(radial));
}
} else if (style->fill.paint.url) {
//TODO: Apply the color pointed by url
} else if (style->fill.paint.curColor) {
//Apply the current style color
vg->fill(style->color.r, style->color.g, style->color.b, style->fill.opacity);