(blind) fix for MSW crash

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-22 15:29:40 +00:00
parent 16d0c403fa
commit f1160963c6

View File

@@ -193,6 +193,14 @@ wxRect wxListbook::GetPageRect() const
void wxListbook::OnSize(wxSizeEvent& event) 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 // resize the list control and the page area to fit inside our new size
const wxSize sizeClient = GetClientSize(), const wxSize sizeClient = GetClientSize(),
sizeList = GetListSize(); sizeList = GetListSize();
@@ -267,8 +275,6 @@ void wxListbook::OnSize(wxSizeEvent& event)
page->Show(); page->Show();
} }
} }
event.Skip();
} }
wxSize wxListbook::CalcSizeFromPage(const wxSize& sizePage) const wxSize wxListbook::CalcSizeFromPage(const wxSize& sizePage) const