Remove stray variable.
[dcpomatic.git] / src / wx / timeline_text_content_view.cc
index bb874449ef7321c9795e53a294edaa6bcbf18d0d..934bf1fc4be12eb812da60a0a9253d08bf99536d 100644 (file)
 */
 
 #include "timeline_text_content_view.h"
-#include "lib/caption_content.h"
+#include "lib/text_content.h"
 #include "lib/content.h"
 
 using boost::shared_ptr;
 
-TimelineTextContentView::TimelineTextContentView (Timeline& tl, shared_ptr<Content> c)
+TimelineTextContentView::TimelineTextContentView (Timeline& tl, shared_ptr<Content> c, shared_ptr<TextContent> caption)
        : TimelineContentView (tl, c)
+       , _caption (caption)
 {
 
 }
@@ -55,5 +56,5 @@ TimelineTextContentView::active () const
 {
        shared_ptr<Content> c = _content.lock ();
        DCPOMATIC_ASSERT (c);
-       return c->caption && c->caption->use();
+       return _caption->use();
 }