forked from mia/Aegisub
Fix incorrect lowercasing in AssFile::GetScriptInfo
Originally committed to SVN as r5811.
This commit is contained in:
parent
f48bc59694
commit
6e2e87c0b5
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue