]> gitweb.michael.orlitzky.com - libsvgtiny.git/blobdiff - src/svgtiny.c
Split the string for stroke-width like it's done for the other attributes so svgtiny_...
[libsvgtiny.git] / 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);
                        }
                }
        }