Bug on GenerateMonth with different years

This commit is contained in:
Grégory Soutadé 2011-01-06 20:23:13 +01:00
parent ac96255b3c
commit b30604fffe

View File

@ -296,8 +296,8 @@ void KissCount::GenerateMonth(int monthFrom, int yearFrom, int monthTo, int year
}
// Re Generate parents
for(it = (*_user->_operations[yearFrom])[monthTo].begin();
it != (*_user->_operations[yearFrom])[monthTo].end();
for(it = (*_user->_operations[yearTo])[monthTo].begin();
it != (*_user->_operations[yearTo])[monthTo].end();
it++)
{
if (it->parent.Length())
@ -305,8 +305,8 @@ void KissCount::GenerateMonth(int monthFrom, int yearFrom, int monthTo, int year
it->parent = meta[it->parent];
UpdateOperation(*it);
for(it2 = (*_user->_operations[yearFrom])[monthTo].begin();
it2 != (*_user->_operations[yearFrom])[monthTo].end();
for(it2 = (*_user->_operations[yearTo])[monthTo].begin();
it2 != (*_user->_operations[yearTo])[monthTo].end();
it2++)
if (it2->id == it->parent)
{