summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/filter_dialog.cc11
1 files 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<Filter const *> 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);
}