diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-05-30 16:00:56 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-12-16 15:03:18 +0100 |
commit | 9d71f580dc436d400ea3d1e836f118b2d8528157 (patch) | |
tree | 3b2a51caa1a4abbe6e66bba5014ade4e026276ac /sfx2 | |
parent | b3293953b885be5ab1b67c00552b3c399eb48814 (diff) |
Don't send INPLACE messages to all views
Change-Id: I5ede42a173d297878b6212c4c8c467e2898d797f
Reviewed-on: https://gerrit.libreoffice.org/80683
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/82164
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/ipclient.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 02d6910e02bc..e4f675d64a00 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -197,10 +197,10 @@ void SAL_CALL SfxInPlaceClient_Impl::notifyEvent( const document::EventObject& a if ( m_pClient && aEvent.EventName == "OnVisAreaChanged" && m_nAspect != embed::Aspects::MSOLE_ICON ) { - if(SfxViewShell* pViewShell = m_pClient->GetViewShell()) + if ( comphelper::LibreOfficeKit::isActive() ) { - pViewShell->libreOfficeKitViewCallback(LOK_CALLBACK_GRAPHIC_SELECTION, "INPLACE"); - SfxLokHelper::notifyOtherViews(pViewShell, LOK_CALLBACK_GRAPHIC_VIEW_SELECTION, "selection", "INPLACE"); + if ( SfxViewShell* pViewShell = m_pClient->GetViewShell() ) + pViewShell->libreOfficeKitViewCallback( LOK_CALLBACK_GRAPHIC_SELECTION, "INPLACE" ); } m_pClient->FormatChanged(); // for Writer when format of the object is changed with the area |