]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gdicmn.cpp
fixed bug in mouse handling
[wxWidgets.git] / src / common / gdicmn.cpp
index ee750ee93bad83a8dac84cace8b79ab179b6db59..4e35df6256aef91de8f62dfdce132dc50c971454 100644 (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)
   {