mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1008154 - Make BaseRect::Intersects return false if at least one of the rects is empty. r=roc
This commit is contained in:
parent
9eea444e74
commit
8dd0c2ffca
@ -92,7 +92,8 @@ struct BaseRect {
|
||||
// Always returns false if aRect is empty or 'this' is empty.
|
||||
bool Intersects(const Sub& aRect) const
|
||||
{
|
||||
return x < aRect.XMost() && aRect.x < XMost() &&
|
||||
return !IsEmpty() && !aRect.IsEmpty() &&
|
||||
x < aRect.XMost() && aRect.x < XMost() &&
|
||||
y < aRect.YMost() && aRect.y < YMost();
|
||||
}
|
||||
// Returns the rectangle containing the intersection of the points
|
||||
|
Loading…
Reference in New Issue
Block a user