editeng/source/editeng/impedit2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 8ecb7a96c332fe070fc471fa0ac04c5026c7f396 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue May 23 19:58:39 2023 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue May 30 21:41:49 2023 +0200 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/+/152107 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> (cherry picked from commit 2b885a3924d9792a120cfc0ab71b216ad08d0996) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152109 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Tested-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 4e87e36af5d3..7e830da175b0 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -371,8 +371,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 );