summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-15 14:55:56 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-15 14:55:56 +0100
commit3526580a5f3b59ff674a59a2bb1fc6549a1fa975 (patch)
treea687a62b878941e9cfa5e84c1e69690dcdf2ecd2
parentacdaad960f383cea49bc40a63be0aa472ea988d2 (diff)
Tidy up subtitle appearance with text subtitles.
-rw-r--r--src/wx/subtitle_appearance_dialog.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wx/subtitle_appearance_dialog.cc b/src/wx/subtitle_appearance_dialog.cc
index 80b347587..2f9b4760c 100644
--- a/src/wx/subtitle_appearance_dialog.cc
+++ b/src/wx/subtitle_appearance_dialog.cc
@@ -86,15 +86,15 @@ SubtitleAppearanceDialog::SubtitleAppearanceDialog (wxWindow* parent, shared_ptr
_table->Add (_fade_out, wxGBPosition (r, 1));
++r;
- wxScrolled<wxPanel>* colours_panel = new wxScrolled<wxPanel> (this);
- colours_panel->EnableScrolling (false, true);
- colours_panel->ShowScrollbars (wxSHOW_SB_NEVER, wxSHOW_SB_ALWAYS);
- colours_panel->SetScrollRate (0, 16);
+ if (_stream) {
+ wxScrolled<wxPanel>* colours_panel = new wxScrolled<wxPanel> (this);
+ colours_panel->EnableScrolling (false, true);
+ colours_panel->ShowScrollbars (wxSHOW_SB_NEVER, wxSHOW_SB_ALWAYS);
+ colours_panel->SetScrollRate (0, 16);
- wxFlexGridSizer* table = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
- table->AddGrowableCol (1, 1);
+ wxFlexGridSizer* table = new wxFlexGridSizer (2, DCPOMATIC_SIZER_X_GAP, DCPOMATIC_SIZER_Y_GAP);
+ table->AddGrowableCol (1, 1);
- if (_stream) {
map<RGBA, RGBA> colours = _stream->colours ();
wxStaticText* t = new wxStaticText (colours_panel, wxID_ANY, "");