Bug 1152263 - Ensure Matrix4x4::ProjectRectBounds being functional for Rect with zero width/height. r=mattwoodrow

This commit is contained in:
Jeremy Chen 2015-04-13 03:10:00 -04:00
parent 056f82d8c9
commit 8061736c42

View File

@ -220,7 +220,7 @@ Rect Matrix4x4::ProjectRectBounds(const Rect& aRect, const Rect &aClip) const
}
}
if (max_x <= min_x || max_y <= min_y) {
if (max_x < min_x || max_y < min_y) {
return Rect(0, 0, 0, 0);
}