]> git.saurik.com Git - wxWidgets.git/commitdiff
wxListCtrl::InsertItem() ignored the column.
authorRobert Roebling <robert@roebling.de>
Mon, 1 Nov 2004 12:09:18 +0000 (12:09 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 1 Nov 2004 12:09:18 +0000 (12:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index e965866237a2ff797052cb2898e2462739a7a607..dece7fb5ebfed8cc8ca39b4a21b350b594067b2c 100644 (file)
@@ -4399,7 +4399,7 @@ void wxListMainWindow::InsertItem( wxListItem &item )
 
     wxListLineData *line = new wxListLineData(this);
 
-    line->SetItem( 0, item );
+    line->SetItem( item.m_col, item );
 
     m_lines.Insert( line, id );