From 44bf7fe3d043bfd096ee2218712154b5ab992504 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 Aug 2005 15:37:54 +0000 Subject: [PATCH] fixed wxRegionRefData copy ctor (patch 1274403) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/regiong.cpp | 41 +++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) 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