forked from mia/Aegisub
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]") {
|
if ((*cur)->group == "[Script Info]") {
|
||||||
GotIn = true;
|
GotIn = true;
|
||||||
wxString curText = (*cur)->GetEntryData();
|
wxString curText = (*cur)->GetEntryData();
|
||||||
curText.MakeLower();
|
if (curText.Lower().StartsWith(key))
|
||||||
|
return curText.Mid(key.size()).Trim(true).Trim(false);
|
||||||
wxString value;
|
|
||||||
if (curText.StartsWith(key, &value))
|
|
||||||
return value.Trim(true).Trim(false);
|
|
||||||
}
|
}
|
||||||
else if (GotIn) return "";
|
else if (GotIn) return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue