From: Vadim Zeitlin Date: Fri, 22 Aug 2003 15:29:40 +0000 (+0000) Subject: (blind) fix for MSW crash X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f1160963c677202f56e548df63e65e7d458d8e7e (blind) fix for MSW crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/listbkg.cpp b/src/generic/listbkg.cpp index c334b3d012..67f4f20987 100644 --- a/src/generic/listbkg.cpp +++ b/src/generic/listbkg.cpp @@ -193,6 +193,14 @@ wxRect wxListbook::GetPageRect() const void wxListbook::OnSize(wxSizeEvent& event) { + event.Skip(); + + if ( !m_list ) + { + // we're not fully created yet + return; + } + // resize the list control and the page area to fit inside our new size const wxSize sizeClient = GetClientSize(), sizeList = GetListSize(); @@ -267,8 +275,6 @@ void wxListbook::OnSize(wxSizeEvent& event) page->Show(); } } - - event.Skip(); } wxSize wxListbook::CalcSizeFromPage(const wxSize& sizePage) const