Chromium Code Reviews| Index: src/core/SkPathMeasure.cpp |
| diff --git a/src/core/SkPathMeasure.cpp b/src/core/SkPathMeasure.cpp |
| index b06bef7fc50fa28ef0b2fb6ce5ca2260873f7373..c0d97924cb1a69f2f4b754ad9945a634071e5dbf 100644 |
| --- a/src/core/SkPathMeasure.cpp |
| +++ b/src/core/SkPathMeasure.cpp |
| @@ -652,6 +652,9 @@ bool SkPathMeasure::getSegment(SkScalar startD, SkScalar stopD, SkPath* dst, |
| if (startD > stopD) { |
| return false; |
| } |
| + if (!fSegments.count()) { |
| + return false; |
| + } |
| SkPoint p; |
| SkScalar startT, stopT; |