Getting field by cursor position is not safe. It uses the top left point of the cursor rect. Some small cursor size/pos bugs may direcly affect the field. Getting URL field from selection is better in this case. Signed-off-by: Gülşah Köse <gulsah.kose@collabora.com> Change-Id: Ib2a98322b15e9263e7024298c60021e54ba23880 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192097 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193067 Tested-by: Jenkins