X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbc82a22cc4cb21fe3ca705ed5da5644cef90e3a..fc9361e3ec5b81a7e8c32d93a03aea0b2cd3e045:/src/generic/splitter.cpp?ds=sidebyside diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index a869918ae0..958de8cc0b 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -107,7 +107,7 @@ bool wxSplitterWindow::Create(wxWindow *parent, wxWindowID id, void wxSplitterWindow::Init() { - m_container.SetContainerWindow(this); + WX_INIT_CONTROL_CONTAINER(); m_splitMode = wxSPLIT_VERTICAL; m_permitUnsplitAlways = true; @@ -884,9 +884,9 @@ wxSize wxSplitterWindow::DoGetBestSize() const // get best sizes of subwindows wxSize size1, size2; if ( m_windowOne ) - size1 = m_windowOne->GetBestFittingSize(); + size1 = m_windowOne->GetEffectiveMinSize(); if ( m_windowTwo ) - size2 = m_windowTwo->GetBestFittingSize(); + size2 = m_windowTwo->GetEffectiveMinSize(); // sum them //