Tweak previous.
authorCarl Hetherington <cth@carlh.net>
Fri, 8 Feb 2019 15:50:48 +0000 (15:50 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 8 Feb 2019 15:50:48 +0000 (15:50 +0000)
src/ssa_reader.cc

index b899da6151b7eeab10fb1a10b689853679edfa7f..a1672d84758c393786fceb6cec9e3bb9ba325879 100644 (file)
@@ -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;