From c6926be93134e22238bcb2955e808e20b2c137f1 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 24 Jun 2009 14:11:00 +0200 Subject: [PATCH] do not capitalize letter right after the apostrophe --- src/tag_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index 76a36995..56fc1bf4 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -1007,7 +1007,7 @@ std::string TagEditor::CapitalizeFirstLetters(const string &s) result[0] = toupper(result[0]); for (string::iterator it = result.begin()+1; it != result.end(); it++) { - if (isalpha(*it) && !isalpha(*(it-1))) + if (isalpha(*it) && !isalpha(*(it-1)) && *(it-1) != '\'') *it = toupper(*it); } return result;