Fix parse_svg_value

This commit is contained in:
Artem Pavlenko 2021-04-22 11:36:10 +01:00
parent a1cb756fa0
commit 88a15daf93

View file

@ -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) + "\"");
}
is_percent = is_percent_; // update only on success
else
{
is_percent = is_percent_; // update only on success
}
return val;
}