diff --git a/src/msw/region.cpp b/src/msw/region.cpp index 0e1cab3ea9..d2b0f83cf6 100644 --- a/src/msw/region.cpp +++ b/src/msw/region.cpp @@ -101,7 +101,7 @@ wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight) wxRegion::wxRegion(const wxRect& rect) { m_refData = new wxRegionRefData; - M_REGION = ::CreateRectRgn(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom()); + M_REGION = ::CreateRectRgn(rect.x, rect.y, rect.x + rect.width, rect.y + rect.height); } /*