summaryrefslogtreecommitdiff
path: root/starmath/source/node.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 /starmath/source/node.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 'starmath/source/node.cxx')
-rw-r--r--starmath/source/node.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index f5457f5a819e..7f8c47d661c3 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -256,8 +256,8 @@ const SmNode * SmNode::FindTokenAt(sal_uInt16 nRow, sal_uInt16 nCol) const
//! (there should be exactly one such node if any)
{
if ( IsVisible()
- && nRow == GetSelection().nStartPara
- && nCol >= GetSelection().nStartPos && nCol <= GetSelection().nEndPos )
+ && nRow == GetSelection().start.nPara
+ && nCol >= GetSelection().start.nIndex && nCol <= GetSelection().end.nIndex )
return this;
else
{