From: jaspervdg Date: Mon, 28 Apr 2008 19:34:03 +0000 (+0000) Subject: Further fix for sign handling of the SVG path data parser. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e46784cf4de167b3c9e1a85f5381e0364ce0b6e9;p=inkscape.git Further fix for sign handling of the SVG path data parser. --- 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);