]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/dataobj.cpp
Return optimal label width from DrawHeaderButton
[wxWidgets.git] / src / x11 / dataobj.cpp
index 1f2d5aaf0990a8bb7238a6934d7a239f5976475a..b0c6bbc7d4d658c6df6e71a6062f053cef5ac991 100644 (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)