X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/56eebcdac22b3dff33f0aa833e8ed41adc5e79df..883ea3bf80503de1f2aa797ce91acda654d88d74:/src/generic/collpaneg.cpp?ds=sidebyside diff --git a/src/generic/collpaneg.cpp b/src/generic/collpaneg.cpp index f31a7762c7..ae5f0cde3c 100644 --- a/src/generic/collpaneg.cpp +++ b/src/generic/collpaneg.cpp @@ -184,11 +184,11 @@ void wxGenericCollapsiblePane::OnStateChange(const wxSize& sz) if (top->GetSizer()) { // we have just set the size hints... - wxSize sz = top->GetSizer()->CalcMin(); + wxSize szClient = top->GetSizer()->CalcMin(); // use SetClientSize() and not SetSize() otherwise the size for // e.g. a wxFrame with a menubar wouldn't be correctly set - top->SetClientSize(sz); + top->SetClientSize(szClient); } else top->Layout();