Merge pull request #148 from ivandrofly/patch-11

Improved: Use `char.ToUpper()` instead of `ToString().ToUpper()`...
This commit is contained in:
Nikolaj Olsson 2014-06-15 07:31:42 +02:00
commit ccb2037d2b

View File

@ -2662,7 +2662,7 @@ namespace Nikse.SubtitleEdit.Forms
{
var st = new StripableText(p.Text);
if (st.StrippedText.Length > 0 && st.StrippedText[0].ToString() != st.StrippedText[0].ToString().ToUpper())
p.Text = st.Pre + st.StrippedText[0].ToString().ToUpper() + st.StrippedText.Remove(0, 1) + st.Post;
p.Text = st.Pre + char.ToUpper(st.StrippedText[0]) + st.StrippedText.Substring(1) + st.Post;
}
}