DialogEd compiles and works more or less
wxList::Nth() is allowd to just return NULL for out-of-bounds index git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -289,9 +289,9 @@ wxNodeBase *wxListBase::Item(size_t n) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFAIL_MSG( "invalid index in wxListBase::Item" );
|
// wxFAIL_MSG( "invalid index in wxListBase::Item" );
|
||||||
|
|
||||||
return NULL;
|
return (wxNodeBase *)NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxNodeBase *wxListBase::Find(const wxListKey& key) const
|
wxNodeBase *wxListBase::Find(const wxListKey& key) const
|
||||||
|
@@ -873,11 +873,7 @@ void wxResourceManager::AddItemsRecursively(long parent, wxItemResource *resourc
|
|||||||
else
|
else
|
||||||
imageId = 3;
|
imageId = 3;
|
||||||
|
|
||||||
long id = m_editorResourceTree->InsertItem(parent, theString
|
long id = m_editorResourceTree->AppendItem(parent, theString, imageId );
|
||||||
#ifdef __WXMSW__
|
|
||||||
, imageId
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
|
|
||||||
m_editorResourceTree->SetItemData(id, new wxResourceTreeData(resource));
|
m_editorResourceTree->SetItemData(id, new wxResourceTreeData(resource));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user