Add support for player logging.
[dcpomatic.git] / src / lib / render_text.cc
index d2631e3407808ed7f1c186f0011823fc5b92b317..8d5f8e6a94892170ce28903af6a47b9c3f1862a0 100644 (file)
@@ -350,7 +350,7 @@ render_text (list<StringText> subtitles, list<shared_ptr<Font> > fonts, dcp::Siz
        list<PositionImage> images;
 
        BOOST_FOREACH (StringText const & i, subtitles) {
-               if (!pending.empty() && fabs (i.v_position() - pending.back().v_position()) > 1e-4) {
+               if (!pending.empty() && (i.v_align() != pending.back().v_align() || fabs(i.v_position() - pending.back().v_position()) > 1e-4)) {
                        images.push_back (render_line (pending, fonts, target, time, frame_rate));
                        pending.clear ();
                }