From: Carl Hetherington Date: Thu, 18 Jun 2020 10:53:38 +0000 (+0200) Subject: Fix display of Atmos tracks in the timeline. X-Git-Tag: v2.15.82~4 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=690e8a09a4fe5fc703fe00260d5c9509efe2921b;p=dcpomatic.git Fix display of Atmos tracks in the timeline. --- 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; } }