diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-03-07 23:48:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-03-07 23:48:43 +0100 |
| commit | daceaad12cc73404f93d5aae0dd896fcb7b9d3b9 (patch) | |
| tree | 7dc80711804d23bdcc0987d1372f326f03124c2a /src/verify.cc | |
| parent | f0cada65396759b4be19601d8537119a1bb4fbfa (diff) | |
wip: ruby2652-ruby
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/verify.cc b/src/verify.cc index 6f958fa8..bc6c3304 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -1204,9 +1204,11 @@ dcp::verify_text_lines_and_characters( /* Make a list of "subtitle starts" and "subtitle ends" events */ for (auto j: asset->texts()) { if (auto text = dynamic_pointer_cast<const TextString>(j)) { - auto in = make_shared<Event>(text->in(), position(text), text->text().length()); - events.push_back(in); - events.push_back(make_shared<Event>(text->out(), in)); + if (auto string_text = text->string_text()) { + auto in = make_shared<Event>(text->in(), position(text), string_text->length()); + events.push_back(in); + events.push_back(make_shared<Event>(text->out(), in)); + } } } |
