forked from mia/Aegisub
load the last line in srt files not ending with a blank line
Originally committed to SVN as r789.
This commit is contained in:
parent
a33692c852
commit
e638c96e32
1 changed files with 1 additions and 1 deletions
|
@ -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]");
|
||||
|
|
Loading…
Reference in a new issue