From 86fd0ba3d6e00cc7dcf81ed2f98df9556a4482b8 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 22 Jun 2009 13:11:15 +0200 Subject: [PATCH] 'invalid' eRects (produced from operator& on non-overlapping-rects) are in fact empty as well. This simplifies some clipping checks which were done manually before. --- lib/gdi/erect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gdi/erect.h b/lib/gdi/erect.h index 83981403..34713ab4 100644 --- a/lib/gdi/erect.h +++ b/lib/gdi/erect.h @@ -151,7 +151,7 @@ inline eRect::eRect( int left, int top, int width, int height ) } inline bool eRect::empty() const -{ return x1 == x2 || y1 == y2; } +{ return x1 >= x2 || y1 >= y2; } inline bool eRect::valid() const { return x1 <= x2 && y1 <= y2; } -- 2.30.2