Fix unintended lowercasing of all strings returned from AssFile::GetScriptInfo

Originally committed to SVN as r5924.
This commit is contained in:
Thomas Goyne 2011-11-28 22:16:50 +00:00
parent cdf05af92b
commit cce9cb3c47

View file

@ -605,11 +605,8 @@ wxString AssFile::GetScriptInfo(wxString key) {
if ((*cur)->group == "[Script Info]") {
GotIn = true;
wxString curText = (*cur)->GetEntryData();
curText.MakeLower();
wxString value;
if (curText.StartsWith(key, &value))
return value.Trim(true).Trim(false);
if (curText.Lower().StartsWith(key))
return curText.Mid(key.size()).Trim(true).Trim(false);
}
else if (GotIn) return "";
}