summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/drwtxtsh.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-11-20 21:32:16 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-11-24 08:12:55 +0100
commitf9cac88fc24539eb5f7fa501b2499ddf5a46d7f2 (patch)
tree4d592009db20b4f5a31a463739a9dcaa656c42cf /sw/source/uibase/shells/drwtxtsh.cxx
parent7fce875718687e12df4d7a8b997ca7baea548b91 (diff)
Let ESelection use EPaM for simplification
And drop EPosition, which duplicates EPaM, except for its default ctor (used in a single place). Change-Id: I48bb6dafcba84465d61579df0ec71b815945532a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177075 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/source/uibase/shells/drwtxtsh.cxx')
-rw-r--r--sw/source/uibase/shells/drwtxtsh.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx
index 21a11a9f53f0..3679fefda26f 100644
--- a/sw/source/uibase/shells/drwtxtsh.cxx
+++ b/sw/source/uibase/shells/drwtxtsh.cxx
@@ -780,8 +780,7 @@ void SwDrawTextShell::InsertSymbol(SfxRequest& rReq)
// Remove selection
ESelection aSel(pOLV->GetSelection());
- aSel.nStartPara = aSel.nEndPara;
- aSel.nStartPos = aSel.nEndPos;
+ aSel.CollapseToEnd();
pOLV->SetSelection(aSel);
// Restore old font