diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-04-28 12:16:35 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-04-28 12:16:35 +0000 |
| commit | fc75d537aa0ea601c65ee453e2f5632ae33323bb (patch) | |
| tree | 96cd8ce81dd7c2d98d3a79d78ed807d5a3a886f7 /lib/gdi | |
| parent | e0884bba407ed4faf8dd544595255e94e57c8cda (diff) | |
| download | enigma2-fc75d537aa0ea601c65ee453e2f5632ae33323bb.tar.gz enigma2-fc75d537aa0ea601c65ee453e2f5632ae33323bb.zip | |
- fixed empty() - a rectangle is empty when widht OR height is zero
Diffstat (limited to 'lib/gdi')
| -rw-r--r-- | lib/gdi/erect.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
