summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-08-19 18:55:27 +0200
committerAndras Timar <andras.timar@collabora.com>2020-08-23 19:15:15 +0200
commit05d086e432644d80160723009a2b3eebf50417d2 (patch)
tree9b8f443ececfe7730d7b1b3a6fede40c5846d278 /sw
parent16febdbee217525fb0e1dc23bbf574d0fdd1dbec (diff)
tdf#135721 sw: fix spell check context menu deleting flys
Kind of similar to e1629c210ad78310e3d48c0756723134a27b89df but the problem is at a higher level: SwTextShell::Execute() with SID_SPELLCHECK_APPLY_SUGGESTION should not DelLeft() + Insert() but just Replace(). (regression from 28b77c89dfcafae82cf2a6d85731b643ff9290e5) Change-Id: I78487c7841ba22ccc6751240a8e55e08a86fba32 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101014 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de> (cherry picked from commit ec579354af954867b829e7d08e4d752518c83728) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101072 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101231 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/lingu/olmenu.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx
index cb14cd26aca7..2ee4737abfb6 100644
--- a/sw/source/uibase/lingu/olmenu.cxx
+++ b/sw/source/uibase/lingu/olmenu.cxx
@@ -746,9 +746,8 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
m_pSh->StartUndo(SwUndoId::UI_REPLACE, &aRewriter);
m_pSh->StartAction();
- m_pSh->DelLeft();
- m_pSh->Insert( aTmp );
+ m_pSh->Replace(aTmp, false);
/* #102505# EndAction/EndUndo moved down since insertion
of temporary auto correction is now undoable two and