diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-10 00:34:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-10 00:34:43 +0100 |
| commit | 0c8d150d110e7a4d36e4d660d277c23ec88590ae (patch) | |
| tree | 3b3d0a08545289edc3c5458b7ca98536f3ea2fef /src/lib/subtitle_decoder.cc | |
| parent | 31a33018f113cb7b631dd7bb4d0ed2a7de914cd8 (diff) | |
Fix thinko.
Diffstat (limited to 'src/lib/subtitle_decoder.cc')
| -rw-r--r-- | src/lib/subtitle_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc index c0f402e20..f129805d3 100644 --- a/src/lib/subtitle_decoder.cc +++ b/src/lib/subtitle_decoder.cc @@ -142,7 +142,7 @@ SubtitleDecoder::give_text (ContentTimePeriod period, sub::Subtitle const & subt /* See if our next subtitle needs to be placed on screen by us */ bool needs_placement = false; BOOST_FOREACH (sub::Line i, subtitle.lines) { - if (!i.vertical_position.reference && i.vertical_position.reference.get() == sub::TOP_OF_SUBTITLE) { + if (!i.vertical_position.reference || i.vertical_position.reference.get() == sub::TOP_OF_SUBTITLE) { needs_placement = true; } } |
