'invalid' eRects (produced from operator& on non-overlapping-rects) are in fact empty...
[enigma2.git] / lib / gdi / erect.h
index 839814035c28e09e2db3c583da3e71eae752338d..34713ab40f2a5724907b1f8aa43e9d1055085166 100644 (file)
@@ -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; }