From 9cefa0f6a4953890a1212dfd8a6bb32320bc15f4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Feb 2016 11:34:02 +0000 Subject: Fix vertical position referencing of subs in parse_line. --- src/ssa_reader.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc index 703ed26..acaa46b 100644 --- a/src/ssa_reader.cc +++ b/src/ssa_reader.cc @@ -138,6 +138,10 @@ SSAReader::parse_time (string t) const ); } +/** @param base RawSubtitle filled in with any required common values. + * @param line SSA line string. + * @return List of RawSubtitles to represent line with vertical reference TOP_OF_SUBTITLE. + */ list SSAReader::parse_line (RawSubtitle base, string line) { @@ -152,6 +156,7 @@ SSAReader::parse_line (RawSubtitle base, string line) string style; current.vertical_position.line = 0; + current.vertical_position.reference = TOP_OF_SUBTITLE; for (size_t i = 0; i < line.length(); ++i) { char const c = line[i]; -- cgit v1.2.3