Calling a Refresh() before the window is created no longer
gives an assert. Nothing will happen. Added wxTreeCtrl::InsertItem( paret, before, ... ), Correct some places with incorrectly indented code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -152,15 +152,18 @@ wxDataObject::wxDataObject()
|
||||
bool wxDataObject::IsSupportedFormat(const wxDataFormat& format, Direction dir) const
|
||||
{
|
||||
size_t nFormatCount = GetFormatCount(dir);
|
||||
if ( nFormatCount == 1 ) {
|
||||
if ( nFormatCount == 1 )
|
||||
{
|
||||
return format == GetPreferredFormat();
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
wxDataFormat *formats = new wxDataFormat[nFormatCount];
|
||||
GetAllFormats(formats,dir);
|
||||
|
||||
size_t n;
|
||||
for ( n = 0; n < nFormatCount; n++ ) {
|
||||
for ( n = 0; n < nFormatCount; n++ )
|
||||
{
|
||||
if ( formats[n] == format )
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user