]> git.saurik.com Git - wxWidgets.git/commitdiff
Initialize m_lNumRects to avoid core dumps if GpiQueryRegionRects fails.
authorStefan Neis <Stefan.Neis@t-online.de>
Mon, 27 Oct 2003 08:04:25 +0000 (08:04 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Mon, 27 Oct 2003 08:04:25 +0000 (08:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/region.cpp

index c56301d723e90c333add2942d9572992a2d877d4..cb1a0a58f41c571c39b08ab3ceeed73633d2af89 100644 (file)
@@ -629,6 +629,7 @@ void wxRegionIterator::Reset(
 )
 {
     m_lCurrent = 0;
+    m_lNumRects = 0;
     m_vRegion  = rRegion;
 
     if (m_pRects)