summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 902974516fd9..40585351333e 100644
--- a/sw/source/uibase/lingu/olmenu.cxx
+++ b/sw/source/uibase/lingu/olmenu.cxx
@@ -675,9 +675,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