diff options
-rw-r--r-- | src/utils/SkParsePath.cpp | 2 | ||||
-rw-r--r-- | tests/ParsePathTest.cpp | 3 |
2 files changed, 5 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; diff --git a/tests/ParsePathTest.cpp b/tests/ParsePathTest.cpp index ff43d1445c..d2059d6dd0 100644 --- a/tests/ParsePathTest.cpp +++ b/tests/ParsePathTest.cpp @@ -31,6 +31,9 @@ static struct { const char* fStr; const SkRect fBounds; } gRec[] = { + { "M1,1 l-2.58-2.828-3.82-0.113, 1.9-3.3223-1.08-3.6702, 3.75,0.7744,3.16-2.1551," + "0.42,3.8008,3.02,2.3384-3.48,1.574-1.29,3.601z", + { -5.39999962f, -10.3142f, 5.77000046f, 1.f } }, { "", { 0, 0, 0, 0 } }, { "M0,0L10,10", { 0, 0, SkIntToScalar(10), SkIntToScalar(10) } }, { "M-5.5,-0.5 Q 0 0 6,6.50", |