summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-01-20 14:30:14 +0530
committerPranam Lashkari <lpranam@collabora.com>2021-01-20 20:09:05 +0100
commit0e3c9d71c89226f1dbd929e9f6f0fbdcfe14248a (patch)
treed3b8e1cea25855a2a1316cc59278bd6f6b490929
parent10db92590353caeb515dd650a32eb09f352eea98 (diff)
Do not skip cursor invalidation if hyperlink in payload
Change-Id: Iba08f9a52a282bdab890eeb4194222d0b576d64b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109664 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit f7b31b02f2fe28f75d2a70c0261897aba4a7b72d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109675 Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 2f0092177d25..7372a767d645 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1408,7 +1408,9 @@ void CallbackFlushHandler::queue(const int type, const char* data)
// Suppress invalid payloads.
if (type == LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR &&
- payload.find(", 0, 0, ") != std::string::npos)
+ payload.find(", 0, 0, ") != std::string::npos &&
+ payload.find("\"hyperlink\":\"\"") == std::string::npos &&
+ payload.find("\"hyperlink\": {}") == std::string::npos)
{
// The cursor position is often the relative coordinates of the widget
// issuing it, instead of the absolute one that we expect.