'invalid' eRects (produced from operator& on non-overlapping-rects) are in fact empty...
authorFelix Domke <tmbinc@2mac.waldobjekt.org>
Mon, 22 Jun 2009 11:11:15 +0000 (13:11 +0200)
committerFelix Domke <tmbinc@2mac.waldobjekt.org>
Mon, 22 Jun 2009 11:11:15 +0000 (13:11 +0200)
lib/gdi/erect.h

index 8398140..34713ab 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; }