[Libreoffice-commits] core.git: sfx2/source

Szymon KÅ‚os (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 16 14:04:05 UTC 2019


 sfx2/source/view/ipclient.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 9d71f580dc436d400ea3d1e836f118b2d8528157
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Thu May 30 16:00:56 2019 +0200
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Mon Dec 16 15:03:18 2019 +0100

    Don't send INPLACE messages to all views
    
    Change-Id: I5ede42a173d297878b6212c4c8c467e2898d797f
    Reviewed-on: https://gerrit.libreoffice.org/80683
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/82164
    Tested-by: Jenkins
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

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


More information about the Libreoffice-commits mailing list