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:
@@ -67,8 +67,8 @@ wxRect::wxRect(const wxPoint& topLeft, const wxPoint& bottomRight)
|
|||||||
{
|
{
|
||||||
x = topLeft.x;
|
x = topLeft.x;
|
||||||
y = topLeft.y;
|
y = topLeft.y;
|
||||||
width = bottomRight.x - topLeft.x;
|
width = bottomRight.x - topLeft.x + 1;
|
||||||
height = bottomRight.y - topLeft.y;
|
height = bottomRight.y - topLeft.y + 1;
|
||||||
|
|
||||||
if (width < 0)
|
if (width < 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user