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