diff options
Diffstat (limited to 'src/effects/SkCornerPathEffect.cpp')
-rw-r--r-- | src/effects/SkCornerPathEffect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkCornerPathEffect.cpp b/src/effects/SkCornerPathEffect.cpp index 8c7383c554..bc5165ac8b 100644 --- a/src/effects/SkCornerPathEffect.cpp +++ b/src/effects/SkCornerPathEffect.cpp @@ -25,7 +25,7 @@ static bool ComputeStep(const SkPoint& a, const SkPoint& b, SkScalar radius, SkScalar dist = SkPoint::Distance(a, b); step->set(b.fX - a.fX, b.fY - a.fY); - + if (dist <= radius * 2) { step->scale(SK_ScalarHalf); return false; |