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:
parent
1e4095f71d
commit
aac75444c6
@ -1556,7 +1556,7 @@ bool wxListCtrl::DeleteAllColumns()
|
||||
m_dbImpl->GetColumnCount(&cols);
|
||||
for (UInt32 col = 0; col < cols; col++)
|
||||
{
|
||||
DeleteColumn(col);
|
||||
DeleteColumn(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user