Merge "Region cannot handle malformed Rects. Abort the Region op in that case."
This commit is contained in:
commit
e488c209c4
@ -482,6 +482,7 @@ void Region::boolean_operation(int op, Region& dst,
|
|||||||
if (!rhs.isValid()) {
|
if (!rhs.isValid()) {
|
||||||
LOGE("Region::boolean_operation(op=%d) invalid Rect={%d,%d,%d,%d}",
|
LOGE("Region::boolean_operation(op=%d) invalid Rect={%d,%d,%d,%d}",
|
||||||
op, rhs.left, rhs.top, rhs.right, rhs.bottom);
|
op, rhs.left, rhs.top, rhs.right, rhs.bottom);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if VALIDATE_WITH_CORECG || VALIDATE_REGIONS
|
#if VALIDATE_WITH_CORECG || VALIDATE_REGIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user