From: Felix Domke Date: Thu, 28 Apr 2005 12:16:35 +0000 (+0000) Subject: - fixed empty() - a rectangle is empty when widht OR height is zero X-Git-Tag: 2.6.0~5895 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/fc75d537aa0ea601c65ee453e2f5632ae33323bb?hp=e0884bba407ed4faf8dd544595255e94e57c8cda;ds=sidebyside - fixed empty() - a rectangle is empty when widht OR height is zero --- 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; }