Better fix for previous bug
This commit is contained in:
parent
585ed0ce18
commit
ac96255b3c
|
@ -662,9 +662,8 @@ bool Database::LoadOperation(User* user, const wxString& id)
|
||||||
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])
|
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++)
|
||||||
|
@ -690,6 +689,7 @@ bool Database::LoadOperation(User* user, const wxString& id)
|
||||||
// (*user->_operations[op.year])[op.month].push_back(op);
|
// (*user->_operations[op.year])[op.month].push_back(op);
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
set.Finalize();
|
set.Finalize();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user