cui/source/dialogs/SpellDialog.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 8a1c2a3353f2542703b6f82a14cd84c336a45991 Author: Quan Nguyen <quannguyenvan1...@gmail.com> AuthorDate: Tue Feb 9 10:35:31 2021 +0700 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Thu Feb 18 08:10:06 2021 +0100 tdf#57667 Add to autocorrect button should fix the wrong word when clicked Add ChangeHdl to ExtClickHdl if handle m_xAutoCorrPB in SpellDialog Change-Id: Iea47c64a932479e6af3e3f2482527bb6cf8a324f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110618 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index bdb46b8bae29..5ad37af93487 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -441,6 +441,8 @@ IMPL_LINK( SpellDialog, ExtClickHdl, weld::Button&, rBtn, void ) SvxPrepareAutoCorrect( sWrong, sCurrentErrorText ); LanguageType eLang = GetSelectedLang_Impl(); rParent.AddAutoCorrection( sWrong, sCurrentErrorText, eLang ); + //correct the word immediately + ChangeHdl(*m_xAutoCorrPB); } } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits