diff options
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; |
