diff options
Diffstat (limited to 'sw/source/uibase/shells/textsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/textsh.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index 93020de3bad2..77f300367f50 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -90,6 +90,8 @@ #include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp> #include <IDocumentUndoRedo.hxx> #include <formatcontentcontrol.hxx> +#include <com/sun/star/i18n/WordType.hpp> + using namespace ::com::sun::star; @@ -894,16 +896,8 @@ void SwTextShell::ExecRotateTransliteration( SfxRequest const & rReq ) else { if (bSentenceCase) - { - if (!rSh.IsEndSentence()) - rSh.EndSentence(false); - } - if (rSh.IsEndSentence()) - { - rSh.BwdSentence(true); - rSh.TransliterateText(transFlags); - } - else if ((rSh.IsEndWrd() || rSh.IsStartWord() || rSh.IsInWord()) && rSh.SelWrd()) + transFlags = m_aRotateCase.getNextMode(); + if ((rSh.IsEndWrd() || rSh.IsStartWord() || rSh.IsInWord()) && rSh.SelWrd(nullptr, i18n::WordType::WORD_COUNT)) rSh.TransliterateText(transFlags); } } |