diff options
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/ops/GrAAConvexPathRenderer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/ops/GrAAConvexPathRenderer.cpp b/src/gpu/ops/GrAAConvexPathRenderer.cpp index 8ca022263b..90376b2e0e 100644 --- a/src/gpu/ops/GrAAConvexPathRenderer.cpp +++ b/src/gpu/ops/GrAAConvexPathRenderer.cpp @@ -111,7 +111,7 @@ static bool center_of_mass(const SegmentArray& segments, SkPoint* c) { // undo the translate of p0 to the origin. *c = center + p0; } - return !SkScalarIsNaN(c->fX) && !SkScalarIsNaN(c->fY); + return !SkScalarIsNaN(c->fX) && !SkScalarIsNaN(c->fY) && c->isFinite(); } static bool compute_vectors(SegmentArray* segments, |