Bug on precedent commit
This commit is contained in:
parent
63f2a72a06
commit
557037f397
|
@ -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);
|
||||
|
@ -210,10 +210,18 @@ void AccountPanel::InitStatsGrid(User* user)
|
|||
_statsGrid->SetCellValue(TOTAL_DEBIT, 0, _("Total Debit"));
|
||||
|
||||
for(i=0; i<nb_categories; i++)
|
||||
{
|
||||
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);
|
||||
font.SetWeight(wxFONTWEIGHT_BOLD);
|
||||
|
|
Loading…
Reference in New Issue
Block a user