summaryrefslogtreecommitdiff
path: root/src/verify.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-07 23:48:43 +0100
committerCarl Hetherington <cth@carlh.net>2026-03-07 23:48:43 +0100
commitdaceaad12cc73404f93d5aae0dd896fcb7b9d3b9 (patch)
tree7dc80711804d23bdcc0987d1372f326f03124c2a /src/verify.cc
parentf0cada65396759b4be19601d8537119a1bb4fbfa (diff)
wip: ruby2652-ruby
Diffstat (limited to 'src/verify.cc')
-rw-r--r--src/verify.cc8
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));
+ }
}
}