diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-02-01 22:18:01 +0530 |
---|---|---|
committer | Pranam Lashkari <lpranam@collabora.com> | 2021-02-03 17:34:03 +0100 |
commit | 3233db0913193855285e1f56492d4617368441b6 (patch) | |
tree | a6f7fbfe0e15221af5ca29262952bdbcfd8371e3 /editeng | |
parent | 40b56cd8da8c38582dc4660b486993d1b4711535 (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>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 389b9d5bca20..40d551eab27f 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1818,7 +1818,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) { |