wxDF_UNICODETEXT shouldn't be supported at all in ANSI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -81,10 +81,13 @@ void wxDataFormat::SetType( wxDataFormatId type )
|
|||||||
m_format = g_textAtom;
|
m_format = g_textAtom;
|
||||||
else if (m_type == wxDF_TEXT)
|
else if (m_type == wxDF_TEXT)
|
||||||
m_format = g_altTextAtom;
|
m_format = g_altTextAtom;
|
||||||
#else
|
#else // !wxUSE_UNICODE
|
||||||
if (m_type == wxDF_TEXT || m_type == wxDF_UNICODETEXT)
|
// notice that we don't map wxDF_UNICODETEXT to g_textAtom here, this
|
||||||
|
// would lead the code elsewhere to treat data objects with this format as
|
||||||
|
// containing UTF-8 data which is not true
|
||||||
|
if (m_type == wxDF_TEXT)
|
||||||
m_format = g_textAtom;
|
m_format = g_textAtom;
|
||||||
#endif
|
#endif // wxUSE_UNICODE/!wxUSE_UNICODE
|
||||||
else
|
else
|
||||||
if (m_type == wxDF_BITMAP)
|
if (m_type == wxDF_BITMAP)
|
||||||
m_format = g_pngAtom;
|
m_format = g_pngAtom;
|
||||||
|
Reference in New Issue
Block a user