From 831e353c5dd49f153a9e10c58415ac650fe88c35 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 14 May 2019 10:30:26 +0100 Subject: [PATCH] SVG parser: better stderr - don't assume fill/stroke ref is a , can be a also. --- src/svg/svg_parser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/svg/svg_parser.cpp b/src/svg/svg_parser.cpp index 5da0bd9d1..849aab889 100644 --- a/src/svg/svg_parser.cpp +++ b/src/svg/svg_parser.cpp @@ -573,14 +573,14 @@ void parse_stroke(svg_parser& parser, char const* value) else { std::stringstream ss; - ss << "SVG parse error: failed to locate stroke with \"" << id << "\""; + ss << "SVG parse error: failed to locate stroke with \"" << id << "\""; parser.err_handler().on_error(ss.str()); } } else { std::stringstream ss; - ss << "SVG parse error: failed to locate stroke with \"" << id << "\""; + ss << "SVG parse error: failed to locate stroke with \"" << id << "\""; parser.err_handler().on_error(ss.str()); } } @@ -616,14 +616,14 @@ void parse_fill(svg_parser& parser, char const* value) else { std::stringstream ss; - ss << "SVG parse error: failed to locate fill with \"" << id << "\""; + ss << "SVG parse error: failed to locate fill with \"" << id << "\""; parser.err_handler().on_error(ss.str()); } } else { std::stringstream ss; - ss << "SVG parse error: failed to locate fill with \"" << id << "\""; + ss << "SVG parse error: failed to locate fill with \"" << id << "\""; parser.err_handler().on_error(ss.str()); } }