diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-06-24 14:11:00 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-06-24 14:11:00 +0200 |
commit | c6926be93134e22238bcb2955e808e20b2c137f1 (patch) | |
tree | c1ca636bca6e753f2f4a4fc4fbcd7df5381d5d4d | |
parent | 774dbaf8591d97ac3de26ba2d67f5e44c909457c (diff) |
do not capitalize letter right after the apostrophe
-rw-r--r-- | src/tag_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |