]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected index passed
authorJulian Smart <julian@anthemion.co.uk>
Sun, 2 Apr 2006 15:50:32 +0000 (15:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 2 Apr 2006 15:50:32 +0000 (15:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/listctrl/listtest.cpp

index a46ffce6b9bf5ec6a0bd602b4da0f34a93c7a69b..116212c3bf1b1355bfda8446a1f65915014fca8d 100644 (file)
@@ -1052,10 +1052,10 @@ void MyListCtrl::InsertItemInReportView(int i)
     SetItemData(tmp, i);
 
     buf.Printf(_T("Col 1, item %d"), i);
-    SetItem(i, 1, buf);
+    SetItem(tmp, 1, buf);
 
     buf.Printf(_T("Item %d in column 2"), i);
-    SetItem(i, 2, buf);
+    SetItem(tmp, 2, buf);
 }
 
 #if USE_CONTEXT_MENU