diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-02-11 21:35:59 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-02-11 21:59:38 -0500 |
commit | 2a5921ecf159d49597264a9328dc899bba55e57e (patch) | |
tree | 36ab07fe5f770ce8dc4f9fe2b8bcfd512839efc7 /libs/canvas | |
parent | 9090057f6e841b771cc6451e341c2ba3a43bafde (diff) |
Canvas::Rect::contains() should treat its right/left coordinates as exclusive
Diffstat (limited to 'libs/canvas')
-rw-r--r-- | libs/canvas/canvas/types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/canvas/types.h b/libs/canvas/canvas/types.h index 4cba084637..dbd9683b75 100644 --- a/libs/canvas/canvas/types.h +++ b/libs/canvas/canvas/types.h @@ -152,7 +152,7 @@ struct LIBCANVAS_API Rect } bool contains (Duple const & point) const throw () { - return point.x >= x0 && point.x <= x1 && point.y >= y0 && point.y <= y1; + return point.x >= x0 && point.x < x1 && point.y >= y0 && point.y < y1; } Rect fix () const throw () { return Rect (std::min (x0, x1), std::min (y0, y1), |