[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sfx2/source

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 12 02:30:47 UTC 2019


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

New commits:
commit 7cb072e488bf775e9874ea1ad8638117cd155412
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Fri May 31 19:21:19 2019 +0200
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Sat Oct 12 04:29:54 2019 +0200

    Don't send false 'INPLACE' messages
    
    Change-Id: I8eb9a77c7e6b9242f18ac5f0634091c88bf40ec0
    Reviewed-on: https://gerrit.libreoffice.org/80685
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>

diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index f941ceb31a8c..861608dc5211 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -191,12 +191,6 @@ void SAL_CALL SfxInPlaceClient_Impl::notifyEvent( const document::EventObject& a
 
     if ( m_pClient && aEvent.EventName == "OnVisAreaChanged" && m_nAspect != embed::Aspects::MSOLE_ICON )
     {
-        if ( comphelper::LibreOfficeKit::isActive() )
-        {
-            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
         m_pClient->ViewChanged();
         m_pClient->Invalidate();
@@ -339,6 +333,13 @@ void SAL_CALL SfxInPlaceClient_Impl::activatingInplace()
 {
     if ( !m_pClient || !m_pClient->GetViewShell() )
         throw uno::RuntimeException();
+
+    if ( comphelper::LibreOfficeKit::isActive() )
+    {
+        if ( SfxViewShell* pViewShell = m_pClient->GetViewShell() )
+            pViewShell->libreOfficeKitViewCallback( LOK_CALLBACK_GRAPHIC_SELECTION, "INPLACE" );
+    }
+
 }
 
 


More information about the Libreoffice-commits mailing list