diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-03-13 09:43:10 +0100 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2018-03-13 10:24:51 +0100 |
commit | 7828e8dcd82324ee15a5f739bcb63a47bf0e0778 (patch) | |
tree | 997444ebb7ae98ff6e7f7de6fcf33a99c7fdfa92 /sw | |
parent | e93a48a3e290022213a90c58e057907b8ee2907f (diff) |
lokdialog: Guard the SetLOKNotifier to be used only with LibreOfficeKit.
Change-Id: Ia15a3d7a36ad280270ed066392f6b67b3f32f234
Reviewed-on: https://gerrit.libreoffice.org/51199
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/viewling.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index 8672139bc3b3..c0a78d74df0e 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/linguistic2/ProofreadingResult.hpp> #include <com/sun/star/i18n/TextConversionOption.hpp> #include <linguistic/lngprops.hxx> +#include <comphelper/lok.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/propertyvalue.hxx> #include <comphelper/scopeguard.hxx> @@ -779,7 +780,9 @@ bool SwView::ExecSpellPopup(const Point& rPt) } else { - pPopup->SetLOKNotifier(SfxViewShell::Current()); + if (comphelper::LibreOfficeKit::isActive()) + pPopup->SetLOKNotifier(SfxViewShell::Current()); + pPopup->Execute( aToFill.SVRect(), m_pEditWin ); } } |