diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-13 16:34:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-18 11:50:29 +0100 |
| commit | 775ae0e37bbec115d742feade0adc614a9a2301c (patch) | |
| tree | 3f9b7d86c547b2340b09ec4e3b157e88de44ff2e /src/wx/timing_panel.cc | |
| parent | 334b94526f2c1271718a94fe97cfa843cf6ef7a1 (diff) | |
Subtitle rearrangements.
Diffstat (limited to 'src/wx/timing_panel.cc')
| -rw-r--r-- | src/wx/timing_panel.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc index 241b0f706..18a07add4 100644 --- a/src/wx/timing_panel.cc +++ b/src/wx/timing_panel.cc @@ -264,21 +264,20 @@ TimingPanel::film_content_changed (int property) int count_ac = 0; shared_ptr<const Content> ac; int count_sc = 0; - shared_ptr<const SubtitleContent> sc; + shared_ptr<const Content> sc; BOOST_FOREACH (shared_ptr<const Content> i, _parent->selected ()) { if (i->video) { check_vc.insert (i->video->video_frame_rate ()); vc = i; } shared_ptr<const AudioContent> at = dynamic_pointer_cast<const AudioContent> (i); - if (at) { + if (i->audio) { ++count_ac; ac = at; } - shared_ptr<const SubtitleContent> st = dynamic_pointer_cast<const SubtitleContent> (i); - if (st) { + if (i->subtitle) { ++count_sc; - sc = st; + sc = i; } } |
