Fix typos affecting set-to behaviour.
authorCarl Hetherington <cth@carlh.net>
Sat, 13 Jan 2018 22:29:08 +0000 (22:29 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 14 Jan 2018 00:24:46 +0000 (00:24 +0000)
src/wx/subtitle_appearance_dialog.cc

index 831afe7..8ae99bc 100644 (file)
@@ -127,7 +127,7 @@ SubtitleAppearanceDialog::SubtitleAppearanceDialog (wxWindow* parent, shared_ptr
        _effect->Append (_("Shadow"));;
 
        optional<dcp::Colour> colour = _content->subtitle->colour();
-       _force_effect_colour->SetValue (static_cast<bool>(colour));
+       _force_colour->SetValue (static_cast<bool>(colour));
        if (colour) {
                _colour->SetColour (wxColour (colour->r, colour->g, colour->b));
        } else {
@@ -153,7 +153,7 @@ SubtitleAppearanceDialog::SubtitleAppearanceDialog (wxWindow* parent, shared_ptr
        }
 
        optional<dcp::Colour> effect_colour = _content->subtitle->effect_colour();
-       _force_effect_colour->SetValue (static_cast<bool>(_force_effect_colour));
+       _force_effect_colour->SetValue (static_cast<bool>(effect_colour));
        if (effect_colour) {
                _effect_colour->SetColour (wxColour (effect_colour->r, effect_colour->g, effect_colour->b));
        } else {