diff options
author | Justin Luth <jluth@mail.com> | 2023-12-19 20:58:09 -0500 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2024-01-05 14:47:31 +0100 |
commit | a7649b85f1e16dd52378346958216e78b8335b5a (patch) | |
tree | c665d598399494bfb8d9c609e514306e1b5724c7 /sw | |
parent | 4a3c1f0741ce60d218a80348ba95438e26d3423b (diff) |
tdf#111969 sw: acknowledge that last half-character for mouse pointer
This fixes WHEN the helpful mouse cursor changes to a finger
when over top of a smart-tag.
The impact is MUCH LARGER than just smart tags,
but they were the impetus for the change.
Prior to this patch, it would start half-a-character too soon,
and end half-a-character too early.
Change-Id: I84b1e91ccfac2aa18ec58ddfdea25cd199fc694a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161041
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index e89614319903..13199a5b84f2 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -568,6 +568,7 @@ void SwEditWin::UpdatePointer(const Point &rLPt, sal_uInt16 nModifier ) IsAttrAtPos::InetAttr | IsAttrAtPos::Ftn | IsAttrAtPos::SmartTag); + aSwContentAtPos.bPosMatchesBounds = true; // treat last half-char same as first half if( rSh.GetContentAtPos( rLPt, aSwContentAtPos) ) { // Is edit inline input field |