From: Vadim Zeitlin Date: Sun, 28 Aug 2005 15:37:54 +0000 (+0000) Subject: fixed wxRegionRefData copy ctor (patch 1274403) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/44bf7fe3d043bfd096ee2218712154b5ab992504 fixed wxRegionRefData copy ctor (patch 1274403) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/regiong.cpp b/src/generic/regiong.cpp index 99fd7cb8b8..218f5a324c 100644 --- a/src/generic/regiong.cpp +++ b/src/generic/regiong.cpp @@ -28,6 +28,7 @@ struct REGION public: // Default constructor initializes nothing REGION() {} + REGION(const wxRect& rect) { rects = &extents; @@ -38,7 +39,11 @@ public: extents.y2 = rect.y + rect.height; size = 1; } - BoxPtr GetBox(int i) { if(i