Bug of new year

This commit is contained in:
Grégory Soutadé 2011-01-06 18:19:33 +01:00
parent 3785a72613
commit ed52d91a79

View File

@ -661,6 +661,10 @@ bool Database::LoadOperation(User* user, const wxString& id)
op.transfert = set.GetAsString(wxT("transfert"));
op.formula = set.GetAsString(wxT("formula"));
op.meta = set.GetBool(wxT("meta"));
if (!user->_operations[op.year])
user->_operations[op.year] = new std::map<unsigned int, std::vector<Operation> >();
for (it = (*user->_operations[op.year])[op.month].begin();
it != (*user->_operations[op.year])[op.month].end();
it++)