mirror of
https://github.com/odrling/Aegisub
synced 2025-04-11 22:56:02 +02:00
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
@ -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…
x
Reference in New Issue
Block a user