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
This commit is contained in:
Robin Dunn 2006-04-15 06:54:37 +00:00
parent 7017fd6745
commit 89a3d0f772

View File

@ -235,10 +235,19 @@ bool wxClipboard::AddData( wxDataObject *data )
m_data->GetAllFormats( array );
for (size_t i = 0; i < m_data->GetFormatCount(); i++)
{
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 );