Gitweb links:

...log 
http://git.netsurf-browser.org/libsvgtiny.git/shortlog/d5060009e934f2715a35601f7e4192702a473216
...commit 
http://git.netsurf-browser.org/libsvgtiny.git/commit/d5060009e934f2715a35601f7e4192702a473216
...tree 
http://git.netsurf-browser.org/libsvgtiny.git/tree/d5060009e934f2715a35601f7e4192702a473216

The branch, master has been updated
       via  d5060009e934f2715a35601f7e4192702a473216 (commit)
      from  db5bcec3fd559e354efd8de8b9656ae780c3caea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libsvgtiny.git/commit/?id=d5060009e934f2715a35601f7e4192702a473216
commit d5060009e934f2715a35601f7e4192702a473216
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Fix parsing of multiple vertical lineto commands
    
    Thanks to Nils for spotting this.

diff --git a/src/svgtiny.c b/src/svgtiny.c
index bbefb88..69cbcf7 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -577,7 +577,7 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
                                p[i++] = last_cubic_y = last_quad_y = last_y
                                                = y;
                                s += n;
-                       } while (sscanf(s, "%f %n", &x, &n) == 1);
+                       } while (sscanf(s, "%f %n", &y, &n) == 1);
 
                /* curveto (C, c) (6 arguments) */
                } else if (sscanf(s, " %1[Cc] %f %f %f %f %f %f %n", command,


-----------------------------------------------------------------------

Summary of changes:
 src/svgtiny.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/svgtiny.c b/src/svgtiny.c
index bbefb88..69cbcf7 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -577,7 +577,7 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
                                p[i++] = last_cubic_y = last_quad_y = last_y
                                                = y;
                                s += n;
-                       } while (sscanf(s, "%f %n", &x, &n) == 1);
+                       } while (sscanf(s, "%f %n", &y, &n) == 1);
 
                /* curveto (C, c) (6 arguments) */
                } else if (sscanf(s, " %1[Cc] %f %f %f %f %f %f %n", command,


-- 
NetSurf SVG decoder

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to