aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar caryclark <caryclark@google.com>2015-01-29 09:45:44 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-29 09:45:44 -0800
commit52ee8139904ad3823cb99f59c45f8da218ba2392 (patch)
tree33078508d14e93a028bc21efe65a0be9223cf634 /src
parent54443932e86812258eda6ec23d0a0827822edf19 (diff)
fix parsing SVG strings to paths with comma delimiters
BUG=skia:583 R=reed@google.com Review URL: https://codereview.chromium.org/885103002
Diffstat (limited to 'src')
-rw-r--r--src/utils/SkParsePath.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/SkParsePath.cpp b/src/utils/SkParsePath.cpp
index a1261b051a..94c3112120 100644
--- a/src/utils/SkParsePath.cpp
+++ b/src/utils/SkParsePath.cpp
@@ -86,6 +86,8 @@ bool SkParsePath::FromSVGString(const char data[], SkPath* result) {
if (op == '\0') {
return false;
}
+ } else if (is_sep(ch)) {
+ data = skip_sep(data);
} else {
op = ch;
relative = false;