diff options
author | 2011-01-18 20:55:57 +0000 | |
---|---|---|
committer | 2011-01-18 20:55:57 +0000 | |
commit | 44b2c73ca6358ba9c4a413d7b39db7991612a6a2 (patch) | |
tree | 93e04a91da39c7e08b31dc40469479dd1fb5f319 /src/core/SkPath.cpp | |
parent | abf15c189b6333aa77a6c3f566cc67f4634ba338 (diff) |
detect empty/inverted rect before using autobounds helper (as with prev. rev.)
git-svn-id: http://skia.googlecode.com/svn/trunk@705 2bbb7eff-a529-9590-31e7-b0007b416f81
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) { |