]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dataobj.cpp
pen.h depends from brush.h in compat mode
[wxWidgets.git] / src / mac / carbon / dataobj.cpp
index c31a36f618911dc1b09b5eca754210eb1d1179dd..cdec68b05d7028d784a85c4fa2fe733d446ead98 100644 (file)
@@ -147,10 +147,7 @@ void wxDataFormat::SetType( wxDataFormatId dataType )
 
 wxString wxDataFormat::GetId() const
 {
-    wxCHECK_MSG( !IsStandard(), wxEmptyString,
-                 wxT("name of predefined format cannot be retrieved") );
-
-    return m_id;
+    return wxCFStringRef(wxCFRetain((CFStringRef)m_format)).AsString();
 }
 
 void wxDataFormat::SetId( NativeFormat format )