From 0b483d6eef1cc9c0668d33c7a001d2eea7c17e7f Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Mon, 27 Oct 2003 08:04:25 +0000 Subject: [PATCH] Initialize m_lNumRects to avoid core dumps if GpiQueryRegionRects fails. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/region.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os2/region.cpp b/src/os2/region.cpp index c56301d723..cb1a0a58f4 100644 --- a/src/os2/region.cpp +++ b/src/os2/region.cpp @@ -629,6 +629,7 @@ void wxRegionIterator::Reset( ) { m_lCurrent = 0; + m_lNumRects = 0; m_vRegion = rRegion; if (m_pRects)