Corrected off-by-one bug in wxRect(const wxPoint&, const wxPoint&) ctor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-09-04 06:58:30 +00:00
parent cabec8729e
commit 736b80cd76

View File

@@ -67,8 +67,8 @@ wxRect::wxRect(const wxPoint& topLeft, const wxPoint& bottomRight)
{
x = topLeft.x;
y = topLeft.y;
width = bottomRight.x - topLeft.x;
height = bottomRight.y - topLeft.y;
width = bottomRight.x - topLeft.x + 1;
height = bottomRight.y - topLeft.y + 1;
if (width < 0)
{