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

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 26 07:34:41 UTC 2019


 sw/source/uibase/wrtsh/wrtsh1.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit b3f249c1351642be6f2774230ff80a6d20bd1401
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Wed Sep 25 11:40:46 2019 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Sep 26 09:33:05 2019 +0200

    tdf#127673 lok: On double-click, don't enter the embedded objects in Writer.
    
    There are all sorts of problems when we'd try to edit the embedded
    objects, like that that LOK thinks it is a separate view etc., so better
    to disable it for now, before we really need to edit embedded objects.
    
    Change-Id: Ie8c0249cb0ca8b25a2ac97c1ccec4a5a62cbb770
    Reviewed-on: https://gerrit.libreoffice.org/79555
    Tested-by: Jenkins
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 52f30e803973..013da2115b51 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -626,6 +626,12 @@ void SwWrtShell::LaunchOLEObj( long nVerb )
         svt::EmbeddedObjectRef& xRef = GetOLEObject();
         OSL_ENSURE( xRef.is(), "OLE not found" );
 
+        // LOK: we don't want to handle any other embedded objects than
+        // charts, there are too many problems with eg. embedded spreadsheets
+        // (like it creates a separate view for the calc sheet)
+        if (comphelper::LibreOfficeKit::isActive() && !SotExchange::IsChart(xRef->getClassID()))
+            return;
+
         SfxInPlaceClient* pCli = GetView().FindIPClient( xRef.GetObject(), &GetView().GetEditWin() );
         if ( !pCli )
             pCli = new SwOleClient( &GetView(), &GetView().GetEditWin(), xRef );


More information about the Libreoffice-commits mailing list