summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-08-19 18:55:27 +0200
committerMichael Stahl <michael.stahl@cib.de>2020-08-20 13:47:08 +0200
commitec579354af954867b829e7d08e4d752518c83728 (patch)
treee2fea1fd4729fedf648f129a0e927674b4235c7a
parent6274fbe13c8fa556916b5aed695c6921ef6ff84f (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>
-rw-r--r--sw/source/uibase/shells/textsh1.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index 932eca2901ba..c8c2ecfa9ffc 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -1562,9 +1562,8 @@ void SwTextShell::Execute(SfxRequest &rReq)
rWrtSh.StartUndo(SwUndoId::UI_REPLACE, &aRewriter);
rWrtSh.StartAction();
- rWrtSh.DelLeft();
- rWrtSh.Insert( aTmp );
+ rWrtSh.Replace(aTmp, false);
/* #102505# EndAction/EndUndo moved down since insertion
of temporary auto correction is now undoable two and