From fc75d537aa0ea601c65ee453e2f5632ae33323bb Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 28 Apr 2005 12:16:35 +0000 Subject: [PATCH] - fixed empty() - a rectangle is empty when widht OR height is zero --- 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 65fd8d71..d95b8c0f 100644 --- a/lib/gdi/erect.h +++ b/lib/gdi/erect.h @@ -143,7 +143,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