summaryrefslogtreecommitdiff
path: root/chart2/source
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 /chart2/source
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 'chart2/source')
-rw-r--r--chart2/source/controller/main/ChartController_TextEdit.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx
index bc8e65409130..bfbacd95a90c 100644
--- a/chart2/source/controller/main/ChartController_TextEdit.cxx
+++ b/chart2/source/controller/main/ChartController_TextEdit.cxx
@@ -271,8 +271,7 @@ void ChartController::executeDispatch_InsertSpecialCharacter()
pOutlinerView->InsertText(aString, true);
ESelection aSel = pOutlinerView->GetSelection();
- aSel.nStartPara = aSel.nEndPara;
- aSel.nStartPos = aSel.nEndPos;
+ aSel.CollapseToEnd();
pOutlinerView->SetSelection(aSel);
// show changes