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

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 7 20:16:31 UTC 2020


 sw/source/uibase/shells/textsh1.cxx |   17 -----------------
 1 file changed, 17 deletions(-)

New commits:
commit 36bd42e1e57604731fafd556331010578f9233fa
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Mon Sep 7 16:49:29 2020 +0200
Commit:     Tamás Zolnai <tamas.zolnai at collabora.com>
CommitDate: Mon Sep 7 22:15:42 2020 +0200

    tdf#136471: Applying a spell checker suggestion adds the result ..
    
    also to the autocorrect replacement list
    
    Change-Id: I68d055fd55ffae210fff59ada1b925cdf7b34fb7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102193
    Tested-by: Tamás Zolnai <tamas.zolnai at collabora.com>
    Reviewed-by: Tamás Zolnai <tamas.zolnai at collabora.com>

diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index c8c2ecfa9ffc..2a4ff0a32f2e 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1565,23 +1565,6 @@ void SwTextShell::Execute(SfxRequest &rReq)
 
         rWrtSh.Replace(aTmp, false);
 
-        /* #102505# EndAction/EndUndo moved down since insertion
-           of temporary auto correction is now undoable two and
-           must reside in the same undo group.*/
-
-        // record only if it's NOT already present in autocorrection
-        SvxAutoCorrect* pACorr = SvxAutoCorrCfg::Get().GetAutoCorrect();
-
-        OUString aOrigWord( bGrammar ? OUString() : xSpellAlt->getWord() ) ;
-        OUString aNewWord( sApplyText );
-        SvxPrepareAutoCorrect( aOrigWord, aNewWord );
-
-        if (xSpellAlt.is())
-            pACorr->PutText( aOrigWord, aNewWord, LanguageTag( xSpellAlt->getLocale() ).getLanguageType() );
-
-        /* #102505# EndAction/EndUndo moved down since insertion
-           of temporary auto correction is now undoable two and
-           must reside in the same undo group.*/
         rWrtSh.EndAction();
         rWrtSh.EndUndo();
 


More information about the Libreoffice-commits mailing list