Fix thinko.
authorCarl Hetherington <cth@carlh.net>
Thu, 9 Jun 2016 23:34:43 +0000 (00:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 9 Jun 2016 23:34:43 +0000 (00:34 +0100)
src/lib/subtitle_decoder.cc

index c0f402e2009688b2b6192fc60c7bd970b20ecb49..f129805d3ade43ad804f2fb5dfa0a57749e87fee 100644 (file)
@@ -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;
                }
        }