From e638c96e3243652c5b01142e3911cf7ba64513d5 Mon Sep 17 00:00:00 2001 From: Fredrik Mellbin Date: Sun, 14 Jan 2007 22:55:09 +0000 Subject: [PATCH] load the last line in srt files not ending with a blank line Originally committed to SVN as r789. --- aegisub/subtitle_format_srt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/subtitle_format_srt.cpp b/aegisub/subtitle_format_srt.cpp index 153c523ab..631fcff46 100644 --- a/aegisub/subtitle_format_srt.cpp +++ b/aegisub/subtitle_format_srt.cpp @@ -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]");