tdf#135721 sw: fix SwSpellPopup::Execute() deleting flys

Follow-up to ec579354af :
in 6.4, this is the location of the spell check menu code; not sure
how to call this but it has the same bug...

(regression from 28b77c89df)

Change-Id: I0e6ce9c97d810f7c92dff320d403c986a947c266
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101073
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
This commit is contained in:
Michael Stahl
2020-08-20 15:11:20 +02:00
committed by Michael Stahl
parent d31570fbcc
commit a58fe88b5b
+1 -2
View File
@@ -722,9 +722,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