diff options
Diffstat (limited to 'src/core/SkPath.cpp')
-rw-r--r-- | src/core/SkPath.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 0aa741a3ea..73c1367811 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp @@ -488,6 +488,11 @@ static void add_corner_arc(SkPath* path, const SkRect& rect, void SkPath::addRoundRect(const SkRect& rect, const SkScalar rad[], Direction dir) { + // abort before we invoke SkAutoPathBoundsUpdate() + if (rect.isEmpty()) { + return; + } + SkAutoPathBoundsUpdate apbu(this, rect); if (kCW_Direction == dir) { |