]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/clipbrd.cpp
moved wxScrollBar geometry methods out of wxRenderer, they are common for all themes
[wxWidgets.git] / src / x11 / clipbrd.cpp
index 731d49e6685d1cd7f850851081f576221e28b7fc..80a7a15d25a331ed6d2ab48df0137e48d861939f 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/log.h"
     #include "wx/utils.h"
+    #include "wx/dataobj.h"
 #endif
 
-#include "wx/dataobj.h"
-
 #include "wx/x11/private.h"
 
 //-----------------------------------------------------------------------------
@@ -250,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);