Fix float bug && account update stats bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user