sw/source/uibase/shells/textsh.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit fd25b527b3c03f20050aad763b8eb18982f018c0
Author:     Oliver Specht <[email protected]>
AuthorDate: Thu Sep 25 07:23:05 2025 +0200
Commit:     Xisco Fauli <[email protected]>
CommitDate: Mon Sep 29 12:37:15 2025 +0200

    tdf#167973 Fixes case rotation in selection in multiple paragraphs
    
    Broken in commit b1170251fbca5b6b243902cf10695ab4c4c5642b because it checked
    the selection in a single paragraph only.
    
    Change-Id: If84aca87c9fee5750751cd91cb08372714f17eba
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191472
    Tested-by: Jenkins
    Reviewed-by: Oliver Specht <[email protected]>
    (cherry picked from commit bb496f5494a23c247c86fdf5ae65054908df44ce)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191601
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sw/source/uibase/shells/textsh.cxx 
b/sw/source/uibase/shells/textsh.cxx
index 9e26a068285f..d38ebe9f873a 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -894,7 +894,9 @@ void SwTextShell::ExecRotateTransliteration( SfxRequest& 
rReq )
         {
             if (bSentenceCase)
             {
-                OUString aSelection = rSh.GetSelText().trim();
+                OUString aSelection;
+                rSh.GetSelectedText(aSelection);
+                aSelection = aSelection.trim();
                 if (aSelection.getLength() <= 2 || (aSelection.indexOf(' ') < 
0 && aSelection.indexOf('        ') < 0))
                     transFlags = m_aRotateCase.getNextMode();
             }

Reply via email to