From fdb2b47395e82a7a5c41720580161dcd09270cac Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Fri, 25 Jan 2008 20:57:58 +0000 Subject: [PATCH] Fixed SRT exporting Originally committed to SVN as r1834. --- aegisub/subtitle_format_srt.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aegisub/subtitle_format_srt.cpp b/aegisub/subtitle_format_srt.cpp index 0e1254d59..82af786c2 100644 --- a/aegisub/subtitle_format_srt.cpp +++ b/aegisub/subtitle_format_srt.cpp @@ -190,10 +190,7 @@ void SRTSubtitleFormat::WriteFile(wxString _filename,wxString encoding) { using std::list; for (list::iterator cur=Line->begin();cur!=Line->end();cur++) { AssDialogue *current = AssEntry::GetAsDialogue(*cur); - if (current) { - // Get line - if (current->Comment) throw _T("Unexpected line type (comment)"); - + if (current && !current->Comment) { // Write line file.WriteLineToFile(wxString::Format(_T("%i"),i)); file.WriteLineToFile(current->Start.GetSRTFormated() + _T(" --> ") + current->End.GetSRTFormated()); @@ -202,7 +199,6 @@ void SRTSubtitleFormat::WriteFile(wxString _filename,wxString encoding) { i++; } - else throw _T("Unexpected line type"); } // Clean up