forked from mia/Aegisub
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:
parent
cd0378519d
commit
af5d34590a
|
@ -65,8 +65,8 @@ void AssFixStylesFilter::Init() {
|
||||||
/// @param export_dialog
|
/// @param export_dialog
|
||||||
void AssFixStylesFilter::ProcessSubs(AssFile *subs, wxWindow *export_dialog) {
|
void AssFixStylesFilter::ProcessSubs(AssFile *subs, wxWindow *export_dialog) {
|
||||||
wxArrayString styles = subs->GetStyles();
|
wxArrayString styles = subs->GetStyles();
|
||||||
styles.Sort();
|
|
||||||
std::for_each(styles.begin(), styles.end(), std::mem_fun_ref(&wxString::MakeLower));
|
std::for_each(styles.begin(), styles.end(), std::mem_fun_ref(&wxString::MakeLower));
|
||||||
|
styles.Sort();
|
||||||
size_t n = styles.Count();
|
size_t n = styles.Count();
|
||||||
|
|
||||||
for (entryIter cur=subs->Line.begin();cur!=subs->Line.end();cur++) {
|
for (entryIter cur=subs->Line.begin();cur!=subs->Line.end();cur++) {
|
||||||
|
|
Loading…
Reference in a new issue