diff options
Diffstat (limited to 'src/core/SkPath.cpp')
-rw-r--r-- | src/core/SkPath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 5288b85db3..25fd058d20 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp @@ -2242,7 +2242,7 @@ struct Convexicator { ++fPtCount; } else { SkVector vec = pt - fCurrPt; - if (vec.fX || vec.fY) { + if (!SkScalarNearlyZero(vec.lengthSqd(), SK_ScalarNearlyZero*SK_ScalarNearlyZero)) { fLastPt = fCurrPt; fCurrPt = pt; if (++fPtCount == 2) { |