From 9c5b332b83e4a86969c7d17b5b2057685226e240 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 26 Oct 1999 17:12:26 +0000 Subject: [PATCH] Added temporary iterator fix (generates just 1 bounding rectangle) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/region.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/motif/region.cpp b/src/motif/region.cpp index dd44768f7e..8431d309fa 100644 --- a/src/motif/region.cpp +++ b/src/motif/region.cpp @@ -343,7 +343,11 @@ void wxRegionIterator::Reset(const wxRegion& region) else { // TODO create m_rects and fill with rectangles for this region - m_numRects = 0; + + // For now, fudge by getting the whole bounding box. + m_rects = new wxRect[1]; + m_numRects = 1; + m_rects[0] = m_region.GetBox(); } } -- 2.45.2