From 84f8e28d092676aad830a9fbae8145a57c6301bc Mon Sep 17 00:00:00 2001 From: heiko tietze Date: Wed, 21 Mar 2018 10:22:52 +0100 Subject: [PATCH] tdf#116315 - Cycle Case including Sentence case Sentence case added at position #2 in the sequence Change-Id: I99b5afb44260b1a40c7ceb906f729e339aaefd13 Reviewed-on: https://gerrit.libreoffice.org/51696 Tested-by: Jenkins Reviewed-by: Heiko Tietze --- .../data/org/openoffice/Office/UI/GenericCommands.xcu | 2 +- unotools/source/i18n/caserotate.cxx | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu index 19eb401cdead..70a80e8b31da 100644 --- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu +++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu @@ -2646,7 +2646,7 @@ Cycle Case - Cycle Case (Title Case, UPPERCASE, lowercase) + Cycle Case (Title Case, Sentence case, UPPERCASE, lowercase) diff --git a/unotools/source/i18n/caserotate.cxx b/unotools/source/i18n/caserotate.cxx index d4921e9053ef..a242b855ec29 100644 --- a/unotools/source/i18n/caserotate.cxx +++ b/unotools/source/i18n/caserotate.cxx @@ -22,11 +22,14 @@ TransliterationFlags RotateTransliteration::getNextMode() case 0: nMode = TransliterationFlags::TITLE_CASE; break; - case 1: + case 1: //tdf#116315 + nMode = TransliterationFlags::SENTENCE_CASE; + break; + case 2: nMode = TransliterationFlags::LOWERCASE_UPPERCASE; break; default: - case 2: + case 3: nMode = TransliterationFlags::UPPERCASE_LOWERCASE; nF3ShiftCounter = -1; break;