From: Robert Roebling Date: Sat, 12 Dec 1998 08:44:45 +0000 (+0000) Subject: DialogEd compiles and works more or less X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1b4092eb0b2f823ef3e37a8d9a51c3e12d1438c2?ds=inline 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 --- diff --git a/src/common/list.cpp b/src/common/list.cpp index 457a48aa14..041d609db3 100644 --- a/src/common/list.cpp +++ b/src/common/list.cpp @@ -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 diff --git a/utils/dialoged/src/reseditr.cpp b/utils/dialoged/src/reseditr.cpp index 49932783e8..57b3d624c8 100644 --- a/utils/dialoged/src/reseditr.cpp +++ b/utils/dialoged/src/reseditr.cpp @@ -873,11 +873,7 @@ void wxResourceManager::AddItemsRecursively(long parent, wxItemResource *resourc else imageId = 3; - long id = m_editorResourceTree->InsertItem(parent, theString -#ifdef __WXMSW__ - , imageId -#endif - ); + long id = m_editorResourceTree->AppendItem(parent, theString, imageId ); m_editorResourceTree->SetItemData(id, new wxResourceTreeData(resource));