fix SkRegion::intersects(rect) where the part of the rgn that we intersect is
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 7 Nov 2012 14:23:42 +0000 (14:23 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 7 Nov 2012 14:23:42 +0000 (14:23 +0000)
commitbb094b947bb53374f5ad3df1b0cc71f41d43d9bf
tree7dfabffd5159e7026e45993bbfa2f72794e012fc
parent3302783ea7edf667794b088e5fc0656946b99816
fix SkRegion::intersects(rect) where the part of the rgn that we intersect is
the last run. The old bug was that we did an early exit from the loop because
we were comparing against the next rgn.bottom, instead of the current one.

inspired and fixed by danakj http://code.google.com/p/skia/issues/detail?id=958
Review URL: https://codereview.appspot.com/6812099

git-svn-id: http://skia.googlecode.com/svn/trunk@6327 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkRegion.cpp
tests/RegionTest.cpp