[Libreoffice-commits] core.git: cui/source

Quan Nguyen (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 18 07:10:50 UTC 2021


 cui/source/dialogs/SpellDialog.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 8a1c2a3353f2542703b6f82a14cd84c336a45991
Author:     Quan Nguyen <quannguyenvan1701 at gmail.com>
AuthorDate: Tue Feb 9 10:35:31 2021 +0700
Commit:     Heiko Tietze <heiko.tietze at 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.tietze at 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);
             }
         }
     }


More information about the Libreoffice-commits mailing list