]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/plot/plot.cpp
wxVariant support for icon and bitmap should work regardless wxBitmapBase.
[wxWidgets.git] / 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 );