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:
@@ -249,7 +249,7 @@ selection_handler( GtkWidget *WXUNUSED(widget),
|
|||||||
|
|
||||||
// transform Unicode text into multibyte before putting it on clipboard
|
// transform Unicode text into multibyte before putting it on clipboard
|
||||||
#if wxUSE_UNICODE
|
#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;
|
const wchar_t *wstr = (const wchar_t *)d;
|
||||||
size_t len = wxConvCurrent->WC2MB(NULL, wstr, 0);
|
size_t len = wxConvCurrent->WC2MB(NULL, wstr, 0);
|
||||||
|
@@ -80,7 +80,7 @@ void wxDataFormat::SetType( wxDataFormatId type )
|
|||||||
PrepareFormats();
|
PrepareFormats();
|
||||||
m_type = type;
|
m_type = type;
|
||||||
|
|
||||||
if (m_type == wxDF_TEXT)
|
if (m_type == wxDF_TEXT || m_type == wxDF_UNICODETEXT)
|
||||||
m_format = g_textAtom;
|
m_format = g_textAtom;
|
||||||
else
|
else
|
||||||
if (m_type == wxDF_BITMAP)
|
if (m_type == wxDF_BITMAP)
|
||||||
|
Reference in New Issue
Block a user