From 89a3d0f77289fe8a39757bfc3bfe3704c009d224 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 15 Apr 2006 06:54:37 +0000 Subject: [PATCH] Avoid assert that was hidden by IsStandard bug git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/clipbrd.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/mac/carbon/clipbrd.cpp b/src/mac/carbon/clipbrd.cpp index cb88eee08a..3df3a92fd1 100644 --- a/src/mac/carbon/clipbrd.cpp +++ b/src/mac/carbon/clipbrd.cpp @@ -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 );