Bug of new year

This commit is contained in:
Grégory Soutadé 2011-01-06 18:18:31 +01:00
parent 6317511fd8
commit c527fad756

View File

@ -661,6 +661,10 @@ bool Database::LoadOperation(User* user, const wxString& id)
op.transfert = set.GetAsString(wxT("transfert")); op.transfert = set.GetAsString(wxT("transfert"));
op.formula = set.GetAsString(wxT("formula")); op.formula = set.GetAsString(wxT("formula"));
op.meta = set.GetBool(wxT("meta")); 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(); for (it = (*user->_operations[op.year])[op.month].begin();
it != (*user->_operations[op.year])[op.month].end(); it != (*user->_operations[op.year])[op.month].end();
it++) it++)