diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-17 22:33:55 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-17 22:33:55 +0000 |
| commit | 95f4db0a8bb5bbf742a0195fbbe17d304fb99507 (patch) | |
| tree | 6b6cd352a739fb14ba57f81eeef6bb345c3bd045 /src/lib/hints.cc | |
| parent | 1b5168ff5e624b1617059e529f30da460d81246c (diff) | |
Read UTF8 string lengths correctly when checking closed captions (part of #1446).
Diffstat (limited to 'src/lib/hints.cc')
| -rw-r--r-- | src/lib/hints.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc index d961b1a30..6238aa991 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -311,7 +311,7 @@ Hints::text (PlayerText text, TextType type, DCPTimePeriod period) int lines = text.string.size(); BOOST_FOREACH (StringText i, text.string) { - if (i.text().length() > CLOSED_CAPTION_LENGTH) { + if (utf8_strlen(i.text()) > CLOSED_CAPTION_LENGTH) { ++lines; if (!_long_ccap) { _long_ccap = true; |
