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

New commits:
commit bb496f5494a23c247c86fdf5ae65054908df44ce
Author:     Oliver Specht <[email protected]>
AuthorDate: Thu Sep 25 07:23:05 2025 +0200
Commit:     Oliver Specht <[email protected]>
CommitDate: Thu Sep 25 09:15:57 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]>

diff --git a/sw/source/uibase/shells/textsh.cxx 
b/sw/source/uibase/shells/textsh.cxx
index 45eea7dd21f6..802a9f96d9af 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -896,7 +896,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