]> git.saurik.com Git - wxWidgets.git/commitdiff
use just SetSizerAndFit instead of 4 equivalent lines
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Dec 2005 19:23:04 +0000 (19:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Dec 2005 19:23:04 +0000 (19:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/plot/plot.cpp

index 3e10d49c4d38a8692cd557f5c6d56d2779d16273..8a52aa8be5c5406e9b7d3106e1a03c0cfb89a544 100644 (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 );