Support wxDF_UNICODETEXT

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-10-17 17:16:53 +00:00
parent ffd73a2c76
commit daad5a23b7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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)