X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0398b1d65dce1e2479ff41b272b815359655f5df..191549ed17cc522034a85bc6f313d47335302e7e:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index f8d4ed27d1..4dd386361c 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -414,8 +414,6 @@ bool wxNotebook::InsertPage(int nPage, GetSize((int *)&rc.right, (int *)&rc.bottom); TabCtrl_AdjustRect(m_hwnd, FALSE, &rc); pPage->SetSize(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); - if ( pPage->GetAutoLayout() ) - pPage->Layout(); // some page should be selected: either this one or the first one if there is @@ -448,8 +446,6 @@ void wxNotebook::OnSize(wxSizeEvent& event) for ( size_t nPage = 0; nPage < nCount; nPage++ ) { wxNotebookPage *pPage = m_aPages[nPage]; pPage->SetSize(rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top); - if ( pPage->GetAutoLayout() ) - pPage->Layout(); } event.Skip();