diff --git a/src/view/AccountPanel.cpp b/src/view/AccountPanel.cpp index 68c0f28..d999cb8 100644 --- a/src/view/AccountPanel.cpp +++ b/src/view/AccountPanel.cpp @@ -193,7 +193,7 @@ void AccountPanel::InitStatsGrid(User* user) if (!_statsGrid->GetNumberRows()) { - _statsGrid->CreateGrid(nb_categories+CATS_STATS, 2); // Headers + blank + categories + non fix + _statsGrid->CreateGrid(nb_categories+CATS_STATS+1, 2); // Headers + blank + categories + non fix _statsGrid->SetColLabelSize(0); _statsGrid->SetRowLabelSize(0); _statsGrid->EnableEditing(false); @@ -211,8 +211,16 @@ void AccountPanel::InitStatsGrid(User* user) for(i=0; iSetCellValue(CATS_STATS+i, 0, _categories[i]); - _statsGrid->SetCellAlignment(CATS_STATS+i, 1, wxALIGN_RIGHT, wxALIGN_CENTRE); + if (i) + { + _statsGrid->SetCellValue(CATS_STATS+i+1, 0, _categories[i]); + _statsGrid->SetCellAlignment(CATS_STATS+i+1, 1, wxALIGN_RIGHT, wxALIGN_CENTRE); + } + else + { + _statsGrid->SetCellValue(CATS_STATS+i, 0, _categories[i]); + _statsGrid->SetCellAlignment(CATS_STATS+i, 1, wxALIGN_RIGHT, wxALIGN_CENTRE); + } } _statsGrid->AutoSizeColumn(0, false);