[Libreoffice-commits] core.git: officecfg/registry unotools/source

heiko tietze tietze.heiko at gmail.com
Mon Mar 26 12:58:49 UTC 2018


 officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu |    2 +-
 unotools/source/i18n/caserotate.cxx                                  |    7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 84f8e28d092676aad830a9fbae8145a57c6301bc
Author: heiko tietze <tietze.heiko at gmail.com>
Date:   Wed Mar 21 10:22:52 2018 +0100

    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 <ci at libreoffice.org>
    Reviewed-by: Heiko Tietze <tietze.heiko at gmail.com>

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 @@
           <value xml:lang="en-US">Cycle Case</value>
         </prop>
         <prop oor:name="TooltipLabel" oor:type="xs:string">
-          <value xml:lang="en-US">Cycle Case (Title Case, UPPERCASE, lowercase)</value>
+          <value xml:lang="en-US">Cycle Case (Title Case, Sentence case, UPPERCASE, lowercase)</value>
         </prop>
       </node>
       <node oor:name=".uno:ChangeCaseToHalfWidth" oor:op="replace">
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;


More information about the Libreoffice-commits mailing list