diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-05-02 12:13:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-05-02 12:14:05 +0100 |
commit | c881756fcfdc1fa63ff534bf4538d551b2139515 (patch) | |
tree | 50604838aeb28e47f7876b61148db85cefad6278 /vcl | |
parent | 4cc0b82103e0b1d28a3ada59974aac0e7da18083 (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.cxx | 4 |
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) |