From 82b08e910e07bb571b11368124d49dc3d73e33ca Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 4 Oct 2022 20:50:00 +0200 Subject: [PATCH] Fix wxWidgets assertion on opening the video filters selector. --- src/wx/filter_dialog.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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); } -- 2.30.2