solenv/bin/native-code.py         |    2 +-
 vcl/source/treelist/transfer2.cxx |    5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 069aae6be68d67b45222740de01467d11f15adfb
Author:     Tor Lillqvist <t...@iki.fi>
AuthorDate: Thu Apr 14 14:25:31 2022 +0300
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Fri Feb 10 07:57:03 2023 +0000

    Avoid LOKClipboard harder on iOS
    
    Change-Id: I2710a7537594c486878a68c630f762a24ac81c49
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133017
    Tested-by: Tor Lillqvist <t...@collabora.com>
    Reviewed-by: Tor Lillqvist <t...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146739

diff --git a/solenv/bin/native-code.py b/solenv/bin/native-code.py
index e2deb0cbd5b0..0309ae09a7ee 100755
--- a/solenv/bin/native-code.py
+++ b/solenv/bin/native-code.py
@@ -129,7 +129,7 @@ core_constructor_list = [
     "com_sun_star_comp_dba_ODatabaseSource",
     "com_sun_star_comp_dba_ORowSet_get_implementation",
 # desktop/lokclipboard.component
-    "desktop_LOKClipboard_get_implementation",
+    ("desktop_LOKClipboard_get_implementation", "#ifndef IOS"),
 # drawinglayer/drawinglayer.component
     "drawinglayer_XPrimitive2DRenderer",
 # embeddedobj/util/embobj.component
diff --git a/vcl/source/treelist/transfer2.cxx 
b/vcl/source/treelist/transfer2.cxx
index d0a105554c0f..05183b9c0485 100644
--- a/vcl/source/treelist/transfer2.cxx
+++ b/vcl/source/treelist/transfer2.cxx
@@ -484,11 +484,16 @@ Reference<XClipboard> GetSystemClipboard()
     Reference<XClipboard> xClipboard;
     try
     {
+#ifdef IOS
+        if (false)
+            ;
+#else
         if (comphelper::LibreOfficeKit::isActive())
         {
             xClipboard = css::datatransfer::clipboard::LokClipboard::create(
                     comphelper::getProcessComponentContext());
         }
+#endif
         else
         {
             xClipboard = css::datatransfer::clipboard::SystemClipboard::create(

Reply via email to