From 009b6d2972f4882f6fc899debc24f8da17a78098 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 4 Sep 2000 06:58:30 +0000 Subject: [PATCH] Corrected off-by-one bug in wxRect(const wxPoint&, const wxPoint&) ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/gdicmn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 76975cd8c9..6a242f6f35 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -63,8 +63,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) {