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