diff options
author | nyamatongwe <devnull@localhost> | 2002-07-28 13:15:57 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2002-07-28 13:15:57 +0000 |
commit | 02a753124ae352dc7a3237689a108b9fd4bf7d28 (patch) | |
tree | 698ff4e8cebfb9a60c88193e4b16fe8d0b24c691 | |
parent | 60aacc4fedd9016d24363d084f6e76d8833db036 (diff) | |
download | scintilla-mirror-02a753124ae352dc7a3237689a108b9fd4bf7d28.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; } |