From bc2e39e36625691d2418292f717db6c679a54a57 Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Thu, 2 Mar 2000 10:47:38 +0000 Subject: [PATCH] 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 --- src/msw/region.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /* -- 2.50.0