diff options
author | nyamatongwe <unknown> | 2002-07-28 13:15:57 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-07-28 13:15:57 +0000 |
commit | e8eaac5fedd8d48156154b0ee006b842196a85dd (patch) | |
tree | 698ff4e8cebfb9a60c88193e4b16fe8d0b24c691 | |
parent | 543cabf85847734882e600345c3e78c227ba4ebf (diff) | |
download | scintilla-mirror-e8eaac5fedd8d48156154b0ee006b842196a85dd.tar.gz |
Changed Contains to do semi-includive bounds correctly.
-rw-r--r-- | include/Platform.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Platform.h b/include/Platform.h index ffb4a3cc3..1e6acbaac 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -101,8 +101,8 @@ public: (rc.top >= top) && (rc.bottom <= bottom); } bool Intersects(PRectangle other) { - return (right >= other.left) && (left <= other.right) && - (bottom >= other.top) && (top <= other.bottom); + return (right > other.left) && (left < other.right) && + (bottom > other.top) && (top < other.bottom); } int Width() { return right - left; } int Height() { return bottom - top; } |