[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Tue May 2 11:14:39 UTC 2017
vcl/unx/gtk3/gtk3gtkinst.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit c881756fcfdc1fa63ff534bf4538d551b2139515
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue May 2 12:13:41 2017 +0100
Resolves: tdf#99467 pasting text from java apps to gtk3 gives bad results
Change-Id: Ib2625c900def20baa470f0a15e4f72a3f763099e
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 0f47ff54af5d..5d1752058a26 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -104,6 +104,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