Fix parse_svg_value
This commit is contained in:
parent
a1cb756fa0
commit
88a15daf93
1 changed files with 4 additions and 1 deletions
|
@ -271,7 +271,10 @@ double parse_svg_value(T & parser, char const* str, bool & is_percent)
|
|||
val = 0.0; // restore to default on parsing failure
|
||||
parser.err_handler().on_error("SVG parse error: failed to parse <number> with value \"" + std::string(str) + "\"");
|
||||
}
|
||||
else
|
||||
{
|
||||
is_percent = is_percent_; // update only on success
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue