]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid assert that was hidden by IsStandard bug
authorRobin Dunn <robin@alldunn.com>
Sat, 15 Apr 2006 06:54:37 +0000 (06:54 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 15 Apr 2006 06:54:37 +0000 (06:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/clipbrd.cpp

index cb88eee08a9950aee3ad7928b85a0524f9c1ec06..3df3a92fd1915beb70b5e0566d6cb55c5c49b941 100644 (file)
@@ -236,9 +236,18 @@ bool wxClipboard::AddData( wxDataObject *data )
 
     for (size_t i = 0; i < m_data->GetFormatCount(); i++)
     {
-        wxLogTrace( TRACE_CLIPBOARD,
-                    wxT("wxClipboard now supports atom %s"),
-                    array[i].GetId().c_str() );
+        if (array[i].IsStandard())
+        {
+            wxLogTrace( TRACE_CLIPBOARD,
+                        wxT("wxClipboard now supports standard atom type %d"),
+                        array[i].GetType() );
+        }
+        else
+        {
+            wxLogTrace( TRACE_CLIPBOARD,
+                        wxT("wxClipboard now supports atom %s"),
+                        array[i].GetId().c_str() );
+        }
 
         size_t sz = data->GetDataSize( array[ i ] );
         void* buf = malloc( sz + 1 );