diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-02-03 22:32:58 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-02-03 22:32:58 +0000 |
| commit | 3f382e4b9e9d48a96190397295b316f60e0ea205 (patch) | |
| tree | 55bca607afa6cdd11908eff1b522b7c13086c0b5 | |
| parent | f7fdb66245d0f9dbb0be94a15d3d3078e6dc209f (diff) | |
Fix incorrect subtitle positioning when there are simultaneous
subtitles at the same vposition from different reference points (#1458).
| -rw-r--r-- | src/lib/render_subtitles.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/render_subtitles.cc b/src/lib/render_subtitles.cc index f4eb625cc..ab4767e1d 100644 --- a/src/lib/render_subtitles.cc +++ b/src/lib/render_subtitles.cc @@ -366,7 +366,7 @@ render_subtitles (list<SubtitleString> subtitles, list<shared_ptr<Font> > fonts, list<PositionImage> images; BOOST_FOREACH (SubtitleString 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 (); } |
