From 59a6a2b98302adc4732fc26873043bad1a94e9f1 Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Thu, 10 Jan 2013 16:58:02 +0000 Subject: Fix assertion caused by change in 7117. SkRect::intersect returns false if either rectange is empty. SkCanvas::quickReject returns true if an empty rectange is entirely contained within the clip bounds. git-svn-id: http://skia.googlecode.com/svn/trunk@7118 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/core/SkBBoxRecord.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/SkBBoxRecord.cpp b/src/core/SkBBoxRecord.cpp index 78559a4a65..bec6ff6e13 100644 --- a/src/core/SkBBoxRecord.cpp +++ b/src/core/SkBBoxRecord.cpp @@ -274,7 +274,7 @@ bool SkBBoxRecord::transformBounds(const SkRect& bounds, const SkPaint* paint) { } } - if (!this->quickReject(outBounds)) { + if (!outBounds.isEmpty() && !this->quickReject(outBounds)) { this->getTotalMatrix().mapRect(&outBounds); this->handleBBox(outBounds); return true; -- cgit v1.2.3