sw/source/uibase/lingu/olmenu.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit a58fe88b5b406749f6e47c14f56d7490a7958bda Author: Michael Stahl <michael.st...@cib.de> AuthorDate: Thu Aug 20 14:00:04 2020 +0200 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Thu Aug 20 15:11:20 2020 +0200 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.st...@cib.de> 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits