From 8e112341de134cb1a1b51955d7aaf19bdd019e35 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Tue, 26 Dec 2006 18:32:25 +0000 Subject: [PATCH] Added "All Supported Formats" to last commit Originally committed to SVN as r627. --- core/subtitle_format.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/core/subtitle_format.cpp b/core/subtitle_format.cpp index 936029c66..1557cff0f 100644 --- a/core/subtitle_format.cpp +++ b/core/subtitle_format.cpp @@ -224,6 +224,8 @@ wxString SubtitleFormat::GetWildcards(int mode) { wxArrayString cur; wxString wild; wxString final; + wxString temp1; + wxString temp2; // For each format std::list::iterator curIter; @@ -233,8 +235,8 @@ wxString SubtitleFormat::GetWildcards(int mode) { format = *curIter; if (mode == 0) cur = format->GetReadWildcards(); else if (mode == 1) cur = format->GetWriteWildcards(); - wxString temp1; - wxString temp2; + temp1.Clear(); + temp2.Clear(); // Has wildcards if (cur.Count()) { @@ -251,6 +253,15 @@ wxString SubtitleFormat::GetWildcards(int mode) { } } + // Add "all formats" list + temp1.Clear(); + temp2.Clear(); + for (unsigned int i=0;i