Index: src/core/SkPath.cpp |
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp |
index 5288b85db37e3ed4e6d5e68532975032ef7374d5..25fd058d20468feec4cf99d514cbad6fe4dcc4e8 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)) { |
caryclark
2014/11/17 19:37:55
looks like SK_ScalarNearlyZero*SK_ScalarNearlyZero
|
fLastPt = fCurrPt; |
fCurrPt = pt; |
if (++fPtCount == 2) { |