summaryrefslogtreecommitdiff
path: root/Widgets/Rect.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-12 22:50:28 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-12 22:50:28 +0200
commitaceedaf9570bde8e5d0fcf6858b0aa930b0251b0 (patch)
treeee4180ece23427a4662fb6f5362c899f0f52be87 /Widgets/Rect.h
parentb5ff34174db11a3c79e27f8a96d67318834f0e7e (diff)
downloadserenity-aceedaf9570bde8e5d0fcf6858b0aa930b0251b0.zip
Clip Painter operations to the screen rect.
Diffstat (limited to 'Widgets/Rect.h')
-rw-r--r--Widgets/Rect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Widgets/Rect.h b/Widgets/Rect.h
index 98b0d865ff..e9f638ada4 100644
--- a/Widgets/Rect.h
+++ b/Widgets/Rect.h
@@ -42,7 +42,7 @@ public:
bool contains(int x, int y) const
{
- return x >= m_location.x() && x <= right() && y >= m_location.y() && y <= bottom();
+ return x >= m_location.x() && x < right() && y >= m_location.y() && y < bottom();
}
bool contains(const Point& point) const