diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-15 11:34:02 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-15 23:18:34 +0000 |
| commit | df1f122492dcb1a66f3ac1f3fd734f5790a04bea (patch) | |
| tree | c45d90c0a821222ea75147ed84c47740cb2a7c7f /src | |
| parent | 02a2f97a593b0735af02532d206b34f9988c734d (diff) | |
Fix vertical position referencing of subs in parse_line.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ssa_reader.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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<RawSubtitle> 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]; |
