From f51afd8f40e52a9a1949323e94b835ac9df21fc7 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 19 Jul 2011 10:56:04 +0000 Subject: [PATCH] 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 --- src/osx/carbon/region.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)