aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/Platform.h4
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; }