]> git.saurik.com Git - wxWidgets.git/commitdiff
made msw wxRegion(wxRect&) constructor consistant with other wxRegion constructors
authorRon Lee <ron@debian.org>
Thu, 2 Mar 2000 10:47:38 +0000 (10:47 +0000)
committerRon Lee <ron@debian.org>
Thu, 2 Mar 2000 10:47:38 +0000 (10:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/region.cpp

index 0e1cab3ea99bad532d9a70f9eb30ca9cdfa2fa5e..d2b0f83cf6bd1c59f281847e91e9bb6df60a87d5 100644 (file)
@@ -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);
 }
 
 /*