From: Ron Lee Date: Thu, 2 Mar 2000 10:47:38 +0000 (+0000) Subject: made msw wxRegion(wxRect&) constructor consistant with other wxRegion constructors X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bc2e39e36625691d2418292f717db6c679a54a57 made msw wxRegion(wxRect&) constructor consistant with other wxRegion constructors git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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); } /*