[Libreoffice-commits] core.git: Branch 'distro/lhm/libreoffice-5-2+backports' - vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 4 21:58:00 UTC 2019


 vcl/unx/gtk3/gtk3gtkinst.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 690fc6c492ec4c8e35e6eb52e914c06a4740d952
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue May 2 12:13:41 2017 +0100
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Thu Apr 4 23:57:35 2019 +0200

    Resolves: tdf#99467 pasting text from java apps to gtk3 gives bad results
    
    Change-Id: Ib2625c900def20baa470f0a15e4f72a3f763099e
    Reviewed-on: https://gerrit.libreoffice.org/70261
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 426cc235c5a9..59a7f07b0387 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -103,6 +103,10 @@ std::vector<css::datatransfer::DataFlavor> GtkTransferable::getTransferDataFlavo
         const char* pFinalName = pName;
         css::datatransfer::DataFlavor aFlavor;
 
+        // omit text/plain;charset=unicode since it is not well defined
+        if (rtl_str_compare(pName, "text/plain;charset=unicode") == 0)
+            continue;
+
         for (size_t j = 0; j < SAL_N_ELEMENTS(aConversionTab); ++j)
         {
             if (rtl_str_compare(pName, aConversionTab[j].pNativeType) == 0)


More information about the Libreoffice-commits mailing list