X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimeline.cc;h=2b8fba6fd50468766c09a36e3c05646df1d0a5a5;hb=e7d8a70a16f972de2861bb1464dec6df3d26c579;hp=0d7ae7afbca803a0976857645cf09c863f7f5fd9;hpb=377623b67fd390d020276a784e75a08425d9166a;p=dcpomatic.git diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index 0d7ae7afb..2b8fba6fd 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -330,7 +330,7 @@ place (shared_ptr film, TimelineViewList& views, int& tracks) int t = base; auto content = cv->content(); - DCPTimePeriod const content_period (content->position(), content->end(film)); + DCPTimePeriod const content_period = content->period(film); while (true) { auto j = views.begin(); @@ -344,7 +344,8 @@ place (shared_ptr film, TimelineViewList& views, int& tracks) auto test_content = test->content(); if ( test->track() && test->track().get() == t && - content_period.overlap(DCPTimePeriod(test_content->position(), test_content->end(film)))) { + content_period.overlap(test_content->period(film)) + ) { /* we have an overlap on track `t' */ ++t; break;