MGR: Fix a bug in setting column order which I introduced in my previous 2 commits.

This commit is contained in:
Charlie Fenton 2015-05-01 15:00:05 -07:00
parent dfe4544b58
commit fd5fe4c7ee
1 changed files with 2 additions and 1 deletions

View File

@ -377,7 +377,8 @@ void CBOINCListCtrl::SetListColumnOrder(wxArrayString& orderArray) {
}
#ifdef wxHAS_LISTCTRL_COLUMN_ORDER
if ((shownColCount > 0) && (shownColCount <= stdCount) && (colCount > 0)) {
colCount = GetColumnCount();
if ((shownColCount > 0) && (shownColCount <= stdCount) && (colCount == shownColCount)) {
SetColumnsOrder(aOrder);
}
#endif