Handle multiple bitmap subtitles at the same time correctly (#2239).
[dcpomatic.git] / src / lib / content_text.h
index fb86bc78637b599b7ff820b583583c0b324c7e2f..438a76a6e17870fe2b7f52e4a52d51515c71125a 100644 (file)
@@ -45,9 +45,14 @@ private:
        dcpomatic::ContentTime _from;
 };
 
+
 class ContentBitmapText : public ContentText
 {
 public:
+       ContentBitmapText (dcpomatic::ContentTime from)
+               : ContentText(from)
+       {}
+
        ContentBitmapText (dcpomatic::ContentTime f, std::shared_ptr<const Image> im, dcpomatic::Rect<double> r)
                : ContentText (f)
                , subs{ {im, r} }
@@ -57,6 +62,7 @@ public:
        std::vector<BitmapText> subs;
 };
 
+
 /** A text caption.  We store the time period separately (as well as in the dcp::SubtitleStrings)
  *  as the dcp::SubtitleString timings are sometimes quite heavily quantised and this causes problems
  *  when we want to compare the quantised periods to the unquantised ones.