X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/412e0d47c05d69cb029e9dbd11b31ce24fb2377e..5cf1cb1006d6b5762d96c07ee3892883607460c7:/contrib/src/plot/plot.cpp diff --git a/contrib/src/plot/plot.cpp b/contrib/src/plot/plot.cpp index 3e10d49c4d..8a52aa8be5 100644 --- a/contrib/src/plot/plot.cpp +++ b/contrib/src/plot/plot.cpp @@ -781,10 +781,7 @@ wxPlotWindow::wxPlotWindow( wxWindow *parent, wxWindowID id, const wxPoint &pos, mainsizer->Add( m_plotAndTitleSizer, 1, wxEXPAND ); - SetAutoLayout( true ); - SetSizer( mainsizer ); - mainsizer->Fit(this); - mainsizer->SetSizeHints(this); + SetSizerAndFit( mainsizer ); SetTargetWindow( m_area );