Fix incorrect lowercasing in AssFile::GetScriptInfo

Originally committed to SVN as r5811.
This commit is contained in:
Thomas Goyne 2011-11-04 19:41:43 +00:00
parent f48bc59694
commit 6e2e87c0b5

View file

@ -598,7 +598,7 @@ void AssFile::InsertAttachment (wxString filename) {
} }
wxString AssFile::GetScriptInfo(wxString key) { wxString AssFile::GetScriptInfo(wxString key) {
key.Lower(); key.MakeLower();
key += ":"; key += ":";
bool GotIn = false; bool GotIn = false;
@ -606,7 +606,7 @@ wxString AssFile::GetScriptInfo(wxString key) {
if ((*cur)->group == "[Script Info]") { if ((*cur)->group == "[Script Info]") {
GotIn = true; GotIn = true;
wxString curText = (*cur)->GetEntryData(); wxString curText = (*cur)->GetEntryData();
curText.Lower(); curText.MakeLower();
wxString value; wxString value;
if (curText.StartsWith(key, &value)) if (curText.StartsWith(key, &value))