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
This commit is contained in:
Vadim Zeitlin 2005-12-17 19:23:04 +00:00
parent 143e2719f5
commit 120edd5dbd

View File

@ -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 );