From 120edd5dbd72e98fe460ee121cdc807b08617b45 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Dec 2005 19:23:04 +0000 Subject: [PATCH] use just SetSizerAndFit instead of 4 equivalent lines git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/plot/plot.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 ); -- 2.45.2