Fix float bug && account update stats bug

This commit is contained in:
2010-06-30 21:57:35 +02:00
parent 3ea364b22f
commit 224e1e6d99
2 changed files with 23 additions and 8 deletions

View File

@@ -806,9 +806,14 @@ void AccountPanel::OnAccountModified(wxGridEvent& event)
User* user = _kiss->GetUser();
int row = event.GetRow();
double amount;
wxString id = user->GetAccountId(_accounts[row]);
_accountsGrid->GetCellValue(row, event.GetCol()).ToDouble(&amount);
_kiss->SetAccountAmount(_curMonth, _curYear, user->GetAccountId(_accounts[row]), amount);
_accountsGrid->GetCellValue(row, event.GetCol()).ToDouble(&amount);
_kiss->SetAccountAmount(_curMonth, _curYear, id, amount);
_accountsInitValues[id] = amount;
UpdateStats();
}
void AccountPanel::OnTreeRightClick(wxTreeEvent& event)