]> git.saurik.com Git - wxWidgets.git/commitdiff
DialogEd compiles and works more or less
authorRobert Roebling <robert@roebling.de>
Sat, 12 Dec 1998 08:44:45 +0000 (08:44 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 12 Dec 1998 08:44:45 +0000 (08:44 +0000)
  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

src/common/list.cpp
utils/dialoged/src/reseditr.cpp

index 457a48aa146647be3f968abd7fcd754c70b70682..041d609db325ed59a9bdcdaa5931b6291bb5dbb2 100644 (file)
@@ -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
index 49932783e82f096d16a0a702dc52aa1a186de3a4..57b3d624c85b1188ef9910a00b788a546e398c11 100644 (file)
@@ -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));