X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Ftimeline_text_content_view.cc;h=722a9f30a30e45cce7628bda6eaff1f727f8eace;hb=6693132ed6fb863fdff496f42028d25f55eb8bc4;hp=b4820bfea8471d4598fe38c60d13663a7c97a325;hpb=d7ac100c0eb1b5efdcfbec59be870fd869252840;p=dcpomatic.git diff --git a/src/wx/timeline_text_content_view.cc b/src/wx/timeline_text_content_view.cc index b4820bfea..722a9f30a 100644 --- a/src/wx/timeline_text_content_view.cc +++ b/src/wx/timeline_text_content_view.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2013-2016 Carl Hetherington + Copyright (C) 2013-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -22,10 +22,11 @@ #include "lib/text_content.h" #include "lib/content.h" -using boost::shared_ptr; +using std::shared_ptr; -TimelineTextContentView::TimelineTextContentView (Timeline& tl, shared_ptr c) +TimelineTextContentView::TimelineTextContentView (Timeline& tl, shared_ptr c, shared_ptr caption) : TimelineContentView (tl, c) + , _caption (caption) { } @@ -53,7 +54,5 @@ TimelineTextContentView::foreground_colour () const bool TimelineTextContentView::active () const { - shared_ptr c = _content.lock (); - DCPOMATIC_ASSERT (c); - return c->subtitle && c->subtitle->use(); + return _caption->use(); }