diff --git a/src/svg/svg_parser.cpp b/src/svg/svg_parser.cpp index a4540cc91..9cc18f39d 100644 --- a/src/svg/svg_parser.cpp +++ b/src/svg/svg_parser.cpp @@ -275,6 +275,7 @@ double parse_svg_value(T & err_handler, const char* str, bool & is_percent) x3::lit('%')[apply_percent]), x3::space) || (cur != end)) { + val = 0.0; err_handler.on_error("SVG parse error: failed to parse with value \"" + std::string(str) + "\""); } return val;