Fix missing call to Layout() in SIM_PLOT_FRAME after adding widgets.

Fix a minor wxWidgets warning.
This commit is contained in:
jean-pierre charras
2021-03-08 13:49:45 +01:00
parent 8285f2a223
commit c1003e2ddd
4 changed files with 12 additions and 10 deletions
+3
View File
@@ -216,6 +216,9 @@ SIM_PLOT_FRAME::SIM_PLOT_FRAME( KIWAY* aKiway, wxWindow* aParent )
m_welcomePanel = new SIM_PANEL_BASE( wxEmptyString, m_plotNotebook, wxID_ANY );
m_plotNotebook->AddPage( m_welcomePanel, _( "Welcome!" ), 1, true );
// Ensure new items are taken in account by sizers:
Layout();
// resize the subwindows size. At least on Windows, calling wxSafeYield before
// resizing the subwindows forces the wxSplitWindows size events automatically generated
// by wxWidgets to be executed before our resize code.