Bug on GenerateMonth with different years
This commit is contained in:
parent
ac96255b3c
commit
b30604fffe
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user