X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1715d4fef985b707a9582078e4276ffc1fddd07f..2f70baea2fa2aa1fbcdceb0121eea1cb5c9bedf0:/src/osx/carbon/region.cpp diff --git a/src/osx/carbon/region.cpp b/src/osx/carbon/region.cpp index 448ae707a9..99a9875516 100644 --- a/src/osx/carbon/region.cpp +++ b/src/osx/carbon/region.cpp @@ -89,8 +89,8 @@ wxRegion::wxRegion(long x, long y, long w, long h) wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight) { m_refData = new wxRegionRefData(topLeft.x , topLeft.y , - topLeft.x - bottomRight.x , - topLeft.y - bottomRight.y); + bottomRight.x - topLeft.x, + bottomRight.y - topLeft.y); } wxRegion::wxRegion(const wxRect& rect) @@ -247,7 +247,7 @@ bool wxRegion::DoIsEqual(const wxRegion& region) const // There doesn't seem to be any native function for checking the equality // of HIShapes so we compute their differences to determine if they are // equal. - wxRegion r(this); + wxRegion r(*this); r.Subtract(region); if ( !r.IsEmpty() )