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:
parent
7017fd6745
commit
89a3d0f772
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user