mirror of https://github.com/odrling/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
|
@ -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 New Issue