Merge pull request #4516 from OmrSi/toggle-casing

Don't try to convert casing if the language is case-insensitive
This commit is contained in:
Nikolaj Olsson 2020-11-16 15:33:14 +01:00 committed by GitHub
commit fe051f8785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9578,7 +9578,7 @@ namespace Nikse.SubtitleEdit.Forms
private string ToggleCasing(string text)
{
if (string.IsNullOrWhiteSpace(text))
if (string.IsNullOrWhiteSpace(text) || text.ToLower() == text.ToUpper())
{
return text;
}