mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
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:
parent
4589196689
commit
702f452c6c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue