]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Split the string for stroke-width like it's done for the other attributes so svgtiny_...
authorJames Bursa <james@netsurf-browser.org>
Fri, 24 Sep 2010 23:41:14 +0000 (23:41 -0000)
committerJames Bursa <james@netsurf-browser.org>
Fri, 24 Sep 2010 23:41:14 +0000 (23:41 -0000)
svn path=/trunk/libsvgtiny/; revision=10837

src/svgtiny.c

index d87a862f9a013c5047ca3d33ce84c2b5c6a29ba6..5a6e98808210e8a261e2d9bec322ce7aa7f9706c 100644 (file)
@@ -917,8 +917,10 @@ void svgtiny_parse_paint_attributes(const xmlNode *node,
                                s += 13;
                                while (*s == ' ')
                                        s++;
-                               state->stroke_width = svgtiny_parse_length(s,
+                               value = strndup(s, strcspn(s, "; "));
+                               state->stroke_width = svgtiny_parse_length(value,
                                                state->viewport_width, *state);
+                               free(value);
                        }
                }
        }