X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Fwx%2Ftimeline.cc;h=7b9758febd16a4b3a27e300ab0f259745a3c5c42;hp=cbea2333c8293d6dade6acfba38f6c6b749eb7d2;hb=c04fec82d25127fafa73c3daff87bece9aa8c8e8;hpb=690e8a09a4fe5fc703fe00260d5c9509efe2921b diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index cbea2333c..7b9758feb 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -56,6 +56,9 @@ using boost::dynamic_pointer_cast; using boost::bind; using boost::optional; using namespace dcpomatic; +#if BOOST_VERSION >= 106100 +using namespace boost::placeholders; +#endif /* 3 hours in 640 pixels */ double const Timeline::_minimum_pixels_per_second = 640.0 / (60 * 60 * 3); @@ -262,8 +265,8 @@ Timeline::recreate_views () _views.push_back (shared_ptr (new TimelineTextContentView (*this, i, j))); } - if (dynamic_pointer_cast (i)) { - _views.push_back (shared_ptr (new TimelineAtmosContentView (*this, i))); + if (i->atmos) { + _views.push_back (shared_ptr(new TimelineAtmosContentView(*this, i))); } }