From e46784cf4de167b3c9e1a85f5381e0364ce0b6e9 Mon Sep 17 00:00:00 2001 From: jaspervdg Date: Mon, 28 Apr 2008 19:34:03 +0000 Subject: [PATCH] Further fix for sign handling of the SVG path data parser. --- src/svg/svg-path.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp index 3823071b0..720cb8328 100644 --- a/src/svg/svg-path.cpp +++ b/src/svg/svg-path.cpp @@ -540,7 +540,7 @@ static void rsvg_parse_path_data(RSVGParsePathCtx *ctx, const char *data) if (c == '\0') break; - else if ((c == '+' || c == '-') && !exp_wait_sign) + else if ((c == '+' || c == '-') && !in_exp && !exp_wait_sign) { sign = c == '+' ? 1 : -1;; val = 0; @@ -599,7 +599,6 @@ NArtBpath *sp_svg_read_path(gchar const *str) gchar *sp_svg_write_path(NArtBpath const *bpath) { - Inkscape::SVGOStringStream os; bool closed=false; g_return_val_if_fail (bpath != NULL, NULL); -- 2.30.2