From 9bfdad316d3ccff1eb6355c2ab4ad6c70cfe596b Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Sun, 10 May 2020 08:22:42 +0200 Subject: fix broken build caused by change in internal LOK API Change-Id: I1a9f34bbd0cd66d97c92d09cd6bfb8f3a18b6abc --- sw/source/core/crsr/bookmrk.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sw/source') 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; -- cgit v1.2.3