diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-18 12:53:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-18 12:53:38 +0200 |
| commit | 690e8a09a4fe5fc703fe00260d5c9509efe2921b (patch) | |
| tree | 30b0f818cb2cbba848dd54a19aff9c5b0fc2f87e | |
| parent | fcaab33dee470c02a4988aa4317e14de7d4690c9 (diff) | |
Fix display of Atmos tracks in the timeline.
| -rw-r--r-- | src/wx/timeline.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 9f71847f5..cbea2333c 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -420,12 +420,9 @@ Timeline::assign_tracks () bool have_atmos = false; BOOST_FOREACH (shared_ptr<TimelineView> i, _views) { - shared_ptr<TimelineVideoContentView> cv = dynamic_pointer_cast<TimelineVideoContentView> (i); - if (!cv) { - continue; - } - if (dynamic_pointer_cast<TimelineAtmosContentView> (i)) { - cv->set_track (_tracks - 1); + shared_ptr<TimelineAtmosContentView> cv = dynamic_pointer_cast<TimelineAtmosContentView>(i); + if (cv) { + cv->set_track (_tracks); have_atmos = true; } } |
