diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-23 19:58:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-05-23 22:09:44 +0200 |
commit | c43e39a7b7f4b0ed6165af966cce8057a93eb22f (patch) | |
tree | b8177da73ce5221ab7576a88242baf697c1a829f /editeng/source | |
parent | 010c05ca0eb66756b7f5db8b847e5a227d9e1ed4 (diff) |
tdf#155350 Do AutoCorrect of Input Method text
for all of SvxAutoCorrect::IsAutoCorrectChar() chars not just
quotes
Change-Id: I368836ea3c2dcdcc7fbe6906d7ae886f312d73d3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152172
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 98dcf70f186f..254e5e194898 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -375,8 +375,9 @@ bool ImpEditEngine::Command( const CommandEvent& rCEvt, EditView* pView ) // #102812# convert quotes in IME text // works on the last input character, this is especially in Korean text often done // quotes that are inside of the string are not replaced! + // See also tdf#155350 const sal_Unicode nCharCode = aSel.Min().GetNode()->GetChar( aSel.Min().GetIndex() ); - if ( ( GetStatus().DoAutoCorrect() ) && ( ( nCharCode == '\"' ) || ( nCharCode == '\'' ) ) ) + if ( ( GetStatus().DoAutoCorrect() ) && SvxAutoCorrect::IsAutoCorrectChar(nCharCode) ) { aSel = DeleteSelected( aSel ); aSel = AutoCorrect( aSel, nCharCode, mpIMEInfos->bWasCursorOverwrite ); |