From cce9cb3c47999b2f3b957c578593ecc8c50ae7cc Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 28 Nov 2011 22:16:50 +0000 Subject: [PATCH] Fix unintended lowercasing of all strings returned from AssFile::GetScriptInfo Originally committed to SVN as r5924. --- aegisub/src/ass_file.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/aegisub/src/ass_file.cpp b/aegisub/src/ass_file.cpp index 534f8746a..6e9b92450 100644 --- a/aegisub/src/ass_file.cpp +++ b/aegisub/src/ass_file.cpp @@ -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 ""; }