From d5ab7ecf942405bcaa7fd8d367e09f95d6c0c978 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 18 Oct 2021 08:55:27 +0200 Subject: Order subtitles in the XML according to their vertical position (DoM bug #2106). --- src/subtitle_asset.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/subtitle_asset.cc') diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index 2793772a..22781196 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -579,6 +579,9 @@ struct SubtitleSorter if (a->in() != b->in()) { return a->in() < b->in(); } + if (a->v_align() == VAlign::BOTTOM) { + return a->v_position() > b->v_position(); + } return a->v_position() < b->v_position(); } }; -- cgit v1.2.3