load the last line in srt files not ending with a blank line

Originally committed to SVN as r789.
This commit is contained in:
Fredrik Mellbin 2007-01-14 22:55:09 +00:00
parent a33692c852
commit e638c96e32

View file

@ -136,7 +136,7 @@ void SRTSubtitleFormat::ReadFile(wxString filename,wxString encoding) {
case 2:
// Checks if it's done
if (curLine.IsEmpty()) {
if (curLine.IsEmpty() || !file.HasMoreLines()) {
mode = 0;
linen++;
line->group = _T("[Events]");