Index: src/core/SkPathRef.cpp |
diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp |
index 74f3a220ce538bbe5e07873161ed0acf9acd4214..8a90b875ea48934c9ad1acf89a885f1747fc2282 100644 |
--- a/src/core/SkPathRef.cpp |
+++ b/src/core/SkPathRef.cpp |
@@ -619,7 +619,10 @@ void SkPathRef::Iter::setPathRef(const SkPathRef& path) { |
fPts = path.points(); |
fVerbs = path.verbs(); |
fVerbStop = path.verbsMemBegin(); |
- fConicWeights = path.conicWeights() - 1; // begin one behind |
+ fConicWeights = path.conicWeights(); |
+ if (fConicWeights) { |
+ fConicWeights -= 1; // begin one behind |
+ } |
} |
uint8_t SkPathRef::Iter::next(SkPoint pts[4]) { |