diff --git a/src/x11/clipbrd.cpp b/src/x11/clipbrd.cpp index 1ae753aec7..80a7a15d25 100644 --- a/src/x11/clipbrd.cpp +++ b/src/x11/clipbrd.cpp @@ -249,7 +249,7 @@ selection_handler( GtkWidget *WXUNUSED(widget), // transform Unicode text into multibyte before putting it on clipboard #if wxUSE_UNICODE - if ( format.GetType() == wxDF_TEXT ) + if ( format.GetType() == wxDF_TEXT || format.GetType() == wxDF_UNICODETEXT) { const wchar_t *wstr = (const wchar_t *)d; size_t len = wxConvCurrent->WC2MB(NULL, wstr, 0); diff --git a/src/x11/dataobj.cpp b/src/x11/dataobj.cpp index 1f2d5aaf09..b0c6bbc7d4 100644 --- a/src/x11/dataobj.cpp +++ b/src/x11/dataobj.cpp @@ -80,7 +80,7 @@ void wxDataFormat::SetType( wxDataFormatId type ) PrepareFormats(); m_type = type; - if (m_type == wxDF_TEXT) + if (m_type == wxDF_TEXT || m_type == wxDF_UNICODETEXT) m_format = g_textAtom; else if (m_type == wxDF_BITMAP)