From: Stefan Csomor Date: Tue, 19 Jul 2011 10:56:04 +0000 (+0000) Subject: fixing width/height (were negative) thanks to Werner Smekal X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f51afd8f40e52a9a1949323e94b835ac9df21fc7?ds=inline fixing width/height (were negative) thanks to Werner Smekal git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/carbon/region.cpp b/src/osx/carbon/region.cpp index b9ed81e869..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)