From 690e8a09a4fe5fc703fe00260d5c9509efe2921b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 18 Jun 2020 12:53:38 +0200 Subject: Fix display of Atmos tracks in the timeline. --- src/wx/timeline.cc | 9 +++------ 1 file 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 i, _views) { - shared_ptr cv = dynamic_pointer_cast (i); - if (!cv) { - continue; - } - if (dynamic_pointer_cast (i)) { - cv->set_track (_tracks - 1); + shared_ptr cv = dynamic_pointer_cast(i); + if (cv) { + cv->set_track (_tracks); have_atmos = true; } } -- cgit v1.2.3