diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-08-20 14:00:04 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-08-20 15:11:20 +0200 |
commit | a58fe88b5b406749f6e47c14f56d7490a7958bda (patch) | |
tree | ddc6f38f37f95116adee51491168fb6414ddeb2f /sw/source/uibase/lingu/olmenu.cxx | |
parent | d31570fbcc95ef718a68c4b0f94584b2b714d4f9 (diff) |
tdf#135721 sw: fix SwSpellPopup::Execute() deleting flys
Follow-up to ec579354af954867b829e7d08e4d752518c83728 :
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 28b77c89dfcafae82cf2a6d85731b643ff9290e5)
Change-Id: I0e6ce9c97d810f7c92dff320d403c986a947c266
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101073
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw/source/uibase/lingu/olmenu.cxx')
-rw-r--r-- | sw/source/uibase/lingu/olmenu.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index c6e4b1349ef3..866402f8905f 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -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 |