Sort styles after lowercasing them rather than before so they actually get in the right order.

Originally committed to SVN as r4624.
This commit is contained in:
Thomas Goyne 2010-06-27 07:53:36 +00:00
parent cd0378519d
commit af5d34590a

View file

@ -65,8 +65,8 @@ void AssFixStylesFilter::Init() {
/// @param export_dialog
void AssFixStylesFilter::ProcessSubs(AssFile *subs, wxWindow *export_dialog) {
wxArrayString styles = subs->GetStyles();
styles.Sort();
std::for_each(styles.begin(), styles.end(), std::mem_fun_ref(&wxString::MakeLower));
styles.Sort();
size_t n = styles.Count();
for (entryIter cur=subs->Line.begin();cur!=subs->Line.end();cur++) {