Grouped operations have bad month/year in SearchPanel

This commit is contained in:
2011-01-29 12:02:49 +01:00
parent f870f81265
commit e477e3a70c
3 changed files with 4 additions and 2 deletions

View File

@@ -116,6 +116,7 @@ SearchPanel::SearchPanel(KissCount* kiss, wxUI *parent) : KissPanel(kiss, parent
Fit();
SetMinSize(wxSize(rect.width-rect.x-15, rect.height-rect.y-128-25));
SetMaxSize(wxSize(rect.width-rect.x-15, rect.height-rect.y-128-25));
SetScrollbars(10, 10, 100/10, 100/10);
}

View File

@@ -664,7 +664,7 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
for (i=1, it=op.childs.begin(); it!=op.childs.end(); it++, i++)
{
op2 = GetOperation(*it);
InsertOperationWithWeek(user, op2, row+i, op2.fix_cost, _curMonth, _curYear);
InsertOperationWithWeek(user, op2, row+i, op2.fix_cost, op2.month, op2.year);
}
}
else