[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - sw/source

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 9 11:14:58 UTC 2020


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

New commits:
commit 535ba982950eb8edfaa57430639cb861fb0769b4
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Mon Sep 7 16:49:29 2020 +0200
Commit:     Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Wed Sep 9 13:14:24 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>
    (cherry picked from commit 36bd42e1e57604731fafd556331010578f9233fa)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102204
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index f24e8127f6bb..4342ed71380c 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1566,23 +1566,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