summaryrefslogtreecommitdiff
path: root/src/wx/timeline.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-18 12:53:38 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-18 12:53:38 +0200
commit690e8a09a4fe5fc703fe00260d5c9509efe2921b (patch)
tree30b0f818cb2cbba848dd54a19aff9c5b0fc2f87e /src/wx/timeline.cc
parentfcaab33dee470c02a4988aa4317e14de7d4690c9 (diff)
Fix display of Atmos tracks in the timeline.
Diffstat (limited to 'src/wx/timeline.cc')
-rw-r--r--src/wx/timeline.cc9
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;
}
}