From: Carl Hetherington Date: Sun, 8 Nov 2015 22:46:55 +0000 (+0000) Subject: Fix bad layout in the audio tab. X-Git-Tag: v2.5.1~9 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=f0b242a48838fed08c366f371e0107c39d62df4d Fix bad layout in the audio tab. --- diff --git a/ChangeLog b/ChangeLog index 713a25da3..04c78f074 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2015-11-08 Carl Hetherington + * Fix bad layout in the audio tab (#738). + * Allow configuration of SubRip subtitle colour and outlines. 2015-11-06 Carl Hetherington diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index 8e13225c7..b1904107b 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -56,15 +56,11 @@ AudioPanel::AudioPanel (ContentPanel* p) grid->Add (_reference, wxGBPosition (r, 0), wxGBSpan (1, 2)); ++r; - { - wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL); - _show = new wxButton (this, wxID_ANY, _("Show graph of audio levels...")); - s->Add (_show); - _peak = new wxStaticText (this, wxID_ANY, wxT ("")); - s->Add (_peak, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, DCPOMATIC_SIZER_X_GAP); - grid->Add (s, wxGBPosition (r, 0), wxGBSpan (1, 2)); - ++r; - } + _show = new wxButton (this, wxID_ANY, _("Show graph of audio levels...")); + grid->Add (_show, wxGBPosition (r, 0), wxGBSpan (1, 2)); + _peak = new wxStaticText (this, wxID_ANY, wxT ("")); + grid->Add (_peak, wxGBPosition (r, 2), wxGBSpan (1, 2), wxALIGN_CENTER_VERTICAL); + ++r; add_label_to_sizer (grid, this, _("Gain"), true, wxGBPosition (r, 0)); _gain = new ContentSpinCtrlDouble (