diff options
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r-- | src/core/SkCanvas.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 4b0c1d9a74..17f8b83567 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -1497,6 +1497,10 @@ void SkCanvas::drawRect(const SkRect& r, const SkPaint& paint) { } void SkCanvas::drawPath(const SkPath& path, const SkPaint& paint) { + if (!path.isFinite()) { + return; + } + if (!path.isInverseFillType() && paint.canComputeFastBounds()) { SkRect storage; const SkRect& bounds = path.getBounds(); |