Percents into statistics have now minimum two digits
Package libraries into lib instead of root (package.sh)
This commit is contained in:
@@ -260,7 +260,7 @@ void StatsPanel::UpdateStats(int monthFrom, int yearFrom, int monthTo, int yearT
|
||||
{
|
||||
_categoriesValues[_categoriesIndexes[categoriesIt->first]] = categoriesIt->second;
|
||||
percents = ((double) (categoriesIt->second*100))/total;
|
||||
value = wxString::Format(wxT("%0.2lf (%d%%)"), categoriesIt->second, percents);
|
||||
value = wxString::Format(wxT("%0.2lf (%02d%%)"), categoriesIt->second, percents);
|
||||
_statsGrid->SetCellValue(_categoriesIndexes[categoriesIt->first], 1, value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user