git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42079
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// 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);
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)