From: Carl Hetherington Date: Tue, 4 Oct 2022 18:50:00 +0000 (+0200) Subject: Fix wxWidgets assertion on opening the video filters selector. X-Git-Tag: v2.17.2~10 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=82b08e910e07bb571b11368124d49dc3d73e33ca Fix wxWidgets assertion on opening the video filters selector. --- diff --git a/src/wx/filter_dialog.cc b/src/wx/filter_dialog.cc index 3dbb48236..c4317bac1 100644 --- a/src/wx/filter_dialog.cc +++ b/src/wx/filter_dialog.cc @@ -74,15 +74,16 @@ FilterDialog::FilterDialog (wxWindow* parent, vector const & act sizer->AddSpacer (6); } - auto buttons = CreateSeparatedButtonSizer (wxOK); - if (buttons) { - sizer->Add (buttons, wxSizerFlags().Expand().DoubleBorder()); - } - panel->SetSizer (sizer); auto overall_sizer = new wxBoxSizer (wxVERTICAL); overall_sizer->Add (panel, 1, wxTOP | wxLEFT | wxRIGHT, DCPOMATIC_SIZER_GAP); + + auto buttons = CreateSeparatedButtonSizer(wxOK); + if (buttons) { + overall_sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder()); + } + SetSizerAndFit (overall_sizer); }