]> git.saurik.com Git - wxWidgets.git/commitdiff
Added temporary iterator fix (generates just 1 bounding rectangle)
authorJulian Smart <julian@anthemion.co.uk>
Tue, 26 Oct 1999 17:12:26 +0000 (17:12 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 26 Oct 1999 17:12:26 +0000 (17:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/region.cpp

index dd44768f7e9f5e8d2793810fee21921ea2517a03..8431d309fafd61cec0b0d3e4a183ec957384843f 100644 (file)
@@ -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();
     }
 }