Fix unintended lowercasing of all strings returned from AssFile::GetScriptInfo
Originally committed to SVN as r5924.
This commit is contained in:
parent
cdf05af92b
commit
cce9cb3c47
1 changed files with 2 additions and 5 deletions
|
@ -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 "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue