mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
svg_loader: invalid strokes' width set to zero
In case the "stroke" attrib is set to "none", the width of the stroke is set to zero. Thanks to that it isn't taken into account while establishing the bounds of the shape.
This commit is contained in:
parent
be361221df
commit
d96b8f4385
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ static void _applyProperty(SvgNode* node, Shape* vg, const Box& vBox, const stri
|
|||
|
||||
//If stroke property is nullptr then do nothing
|
||||
if (style->stroke.paint.none) {
|
||||
//Do nothing
|
||||
vg->stroke(0.0f);
|
||||
} else if (style->stroke.paint.gradient) {
|
||||
Box bBox = vBox;
|
||||
if (!style->stroke.paint.gradient->userSpace) bBox = _boundingBox(vg);
|
||||
|
|
Loading…
Add table
Reference in a new issue