diff options
| -rw-r--r-- | src/subrip_reader.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc index b95e6be..96526b8 100644 --- a/src/subrip_reader.cc +++ b/src/subrip_reader.cc @@ -301,7 +301,7 @@ SubripReader::convert_line(int line_number, string t, RawSubtitle& p) } else if (has_next(t, i, "</font>")) { maybe_content (p); /* Maybe there were no colours, or this is an extra unmatched </font> */ - if (!colours.empty()) { + if (colours.size() >= 2) { colours.pop_back(); p.colour = colours.back(); } |
