summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-05-10 08:22:42 +0200
committerAndras Timar <andras.timar@collabora.com>2020-05-10 08:31:23 +0200
commit9bfdad316d3ccff1eb6355c2ab4ad6c70cfe596b (patch)
tree8b408a904d6ece9a92b977bbc8fc7ca697d36a57 /sw/source
parentc818e551123a4c158a72e96a39a81b639b3a8015 (diff)
fix broken build caused by change in internal LOK API
Change-Id: I1a9f34bbd0cd66d97c92d09cd6bfb8f3a18b6abc
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/crsr/bookmrk.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/core/crsr/bookmrk.cxx b/sw/source/core/crsr/bookmrk.cxx
index 3efdbf98167d..c1de5fb2cbaf 100644
--- a/sw/source/core/crsr/bookmrk.cxx
+++ b/sw/source/core/crsr/bookmrk.cxx
@@ -718,7 +718,13 @@ namespace sw::mark
void DropDownFieldmark::SendLOKMessage(const OString& sAction)
{
- if (comphelper::LibreOfficeKit::isActive() && !comphelper::LibreOfficeKit::isMobilePhone(SfxLokHelper::getView()))
+ const SfxViewShell* pViewShell = SfxViewShell::Current();
+ if (pViewShell && pViewShell->isLOKMobilePhone())
+ {
+ return;
+ }
+
+ if (comphelper::LibreOfficeKit::isActive())
{
if (!m_pButton)
return;