Column position changes after each delete, so always delete the 0 column.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier 2006-11-15 01:01:16 +00:00
parent 1e4095f71d
commit aac75444c6

View File

@ -1556,7 +1556,7 @@ bool wxListCtrl::DeleteAllColumns()
m_dbImpl->GetColumnCount(&cols);
for (UInt32 col = 0; col < cols; col++)
{
DeleteColumn(col);
DeleteColumn(0);
}
}