summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-05-30 16:00:56 +0200
committerAndras Timar <andras.timar@collabora.com>2019-10-11 22:54:24 +0200
commit403c6cd3653c1013a78f696bc68d639eb0f32f94 (patch)
treea60be5506998375ab3e1b83fd531534ae7dd023c /sfx2
parent80c2c7d0bc63ff7eb962a1b5f498a003253c3acb (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>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/ipclient.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index 1f5acea744d4..f941ceb31a8c 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -191,10 +191,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