]> git.saurik.com Git - wxWidgets.git/commitdiff
add external utf16 text type explicitely, as it otherwise gets treated like plain...
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 12 Mar 2011 15:57:37 +0000 (15:57 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 12 Mar 2011 15:57:37 +0000 (15:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/dataobj.cpp

index 2820e47c45a3839c0c1f816d04816730f1e82421..b330edff1cbcf956f8d5bf1435fb504d83e28c0d 100644 (file)
@@ -162,6 +162,10 @@ void wxDataFormat::SetId( NativeFormat format )
     {
         m_type = wxDF_UNICODETEXT;
     }
+    else if (  UTTypeConformsTo( (CFStringRef)format, CFSTR("public.utf16-external-plain-text") )  )
+    {
+        m_type = wxDF_UNICODETEXT;
+    }
     else if ( UTTypeConformsTo( (CFStringRef)format, CFSTR("public.plain-text") ) )
     {
         m_type = wxDF_TEXT;