summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-05-02 12:13:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-02 12:14:05 +0100
commitc881756fcfdc1fa63ff534bf4538d551b2139515 (patch)
tree50604838aeb28e47f7876b61148db85cefad6278 /vcl
parent4cc0b82103e0b1d28a3ada59974aac0e7da18083 (diff)
Resolves: tdf#99467 pasting text from java apps to gtk3 gives bad results
Change-Id: Ib2625c900def20baa470f0a15e4f72a3f763099e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx4
1 files changed, 4 insertions, 0 deletions
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)