]> git.saurik.com Git - wxWidgets.git/commitdiff
wxListCtrl::InsertItem() returned wrong index.
authorRobert Roebling <robert@roebling.de>
Wed, 13 Sep 2000 20:03:27 +0000 (20:03 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 13 Sep 2000 20:03:27 +0000 (20:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 8b0e74a28a94de9f7c526315d4e57bbd30ee9d25..ad659482c86af6193efb895ce0d747e1cb22e21c 100644 (file)
@@ -3019,7 +3019,7 @@ void wxListMainWindow::InsertItem( wxListItem &item )
     else
     {
         m_lines.Add( line );
-        item.m_itemId = m_lines.GetCount();
+        item.m_itemId = m_lines.GetCount()-1;
     }
 }