summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-02-01 22:18:01 +0530
committerPranam Lashkari <lpranam@collabora.com>2021-04-02 19:46:58 +0200
commitd53112eea7be0fae8224125c921c825932030671 (patch)
treea96afd06db89fb703dd40d29f281f37b5ace2f7e /editeng
parent2dd50a40fa295ed75ad16e379e3781cf5e31f21b (diff)
enable hyperlink to be detected at the end of text
now in online hyperlink popup will appear even when the cursor is at the end of hyperlink text Change-Id: I80a1a093afa11e39236693f8a2639741f74c9876 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110227 Tested-by: Jenkins Reviewed-by: Pranam Lashkari <lpranam@collabora.com> (cherry picked from commit 3233db0913193855285e1f56492d4617368441b6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113532 Tested-by: Pranam Lashkari <lpranam@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index f226f983f593..28c98f4b84b2 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1803,7 +1803,7 @@ const SvxFieldItem* ImpEditView::GetField( const Point& rPos, sal_Int32* pPara,
for (size_t nAttr = rAttrs.size(); nAttr; )
{
const EditCharAttrib& rAttr = *rAttrs[--nAttr];
- if (rAttr.GetStart() == nXPos)
+ if (rAttr.GetStart() == nXPos || rAttr.GetEnd() == nXPos)
{
if (rAttr.Which() == EE_FEATURE_FIELD)
{