mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
svg_loader: adding check if stroke-dasharray attribute != none
The stroke-dasharray value equal to "none" was causing a segfault during a conversion to float. Fixed now.
This commit is contained in:
parent
858de0febb
commit
e0a1aa9355
1 changed files with 2 additions and 0 deletions
|
@ -236,6 +236,8 @@ _PARSE_TAG(SvgFillRule, fillRule, FillRule, fillRuleTags, SvgFillRule::Winding)
|
|||
static inline void
|
||||
_parseDashArray(const char *str, SvgDash* dash)
|
||||
{
|
||||
if (!strncmp(str, "none", 4)) return;
|
||||
|
||||
char *end = nullptr;
|
||||
|
||||
while (*str) {
|
||||
|
|
Loading…
Add table
Reference in a new issue