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) {