diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkDraw.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index 914950c2af..a8f701583f 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -1888,7 +1888,10 @@ static void morphpoints(SkPoint dst[], const SkPoint src[], int count, SkScalar sx = pos.fX; SkScalar sy = pos.fY; - meas.getPosTan(sx, &pos, &tangent); + if (!meas.getPosTan(sx, &pos, &tangent)) { + // set to 0 if the measure failed, so that we just set dst == pos + tangent.set(0, 0); + } /* This is the old way (that explains our approach but is way too slow SkMatrix matrix; |