diff options
author | Oliver Specht <oliver.specht@cib.de> | 2025-09-25 07:23:05 +0200 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2025-09-25 09:15:57 +0200 |
commit | bb496f5494a23c247c86fdf5ae65054908df44ce (patch) | |
tree | dd5d8f04f4e222959fb611c2ecf057a2a49755fc | |
parent | b86090e034105b386e44072dd084efe13b665cc1 (diff) |
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 <oliver.specht@cib.de>
-rw-r--r-- | sw/source/uibase/shells/textsh.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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('\t') < 0)) transFlags = m_aRotateCase.getNextMode(); } |