summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase/shells/textsh.cxx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 05:03:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 05:03:13 +0000
commit26f6ae4122fcce6bafa71c064f5e645c39022082 (patch)
treeb0e0916f682785b3a983b71950c4623988ca6eef /sw/source/uibase/shells/textsh.cxx
parentAdding upstream version 4:24.2.2. (diff)
downloadlibreoffice-26f6ae4122fcce6bafa71c064f5e645c39022082.tar.xz
libreoffice-26f6ae4122fcce6bafa71c064f5e645c39022082.zip
Adding upstream version 4:24.2.3.upstream/4%24.2.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sw/source/uibase/shells/textsh.cxx')
-rw-r--r--sw/source/uibase/shells/textsh.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx
index 97de985401..29242d9946 100644
--- a/sw/source/uibase/shells/textsh.cxx
+++ b/sw/source/uibase/shells/textsh.cxx
@@ -885,10 +885,13 @@ void SwTextShell::ExecRotateTransliteration( SfxRequest const & rReq )
}
else
{
- rSh.Push(); // save cur cursor
- if ((rSh.IsEndWrd() || rSh.IsStartWord() || rSh.IsInWord()) && rSh.SelWrd())
+ if (rSh.IsEndSentence())
+ {
+ rSh.BwdSentence(true);
+ rSh.TransliterateText(m_aRotateCase.getNextMode());
+ }
+ else if ((rSh.IsEndWrd() || rSh.IsStartWord() || rSh.IsInWord()) && rSh.SelWrd())
rSh.TransliterateText(m_aRotateCase.getNextMode());
- rSh.Pop(SwCursorShell::PopMode::DeleteCurrent);
}
}
}