diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-02-08 15:50:48 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-02-08 15:50:48 +0000 |
| commit | 1c70f3aec91bddcfe2b321dab16a5bd70bc3f089 (patch) | |
| tree | b370f9ee84c1cfd70b910e7f471cc8b0ffc78556 /src | |
| parent | 2591901b9d269681fa622d8fe28d4bf3a9dafaf1 (diff) | |
Tweak previous.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ssa_reader.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssa_reader.cc b/src/ssa_reader.cc index b899da6..a1672d8 100644 --- a/src/ssa_reader.cc +++ b/src/ssa_reader.cc @@ -212,7 +212,7 @@ SSAReader::parse_line (RawSubtitle base, string line, int play_res_x, int play_r /* Count the number of line breaks */ int line_breaks = 0; - if (line.length() > 1) { + if (line.length() > 0) { for (size_t i = 0; i < line.length() - 1; ++i) { if (line[i] == '\\' && (line[i+1] == 'n' || line[i+1] == 'N')) { ++line_breaks; |
