Grouped operations have bad month/year in SearchPanel

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

View File

@ -2,7 +2,7 @@ v0.2_dev (29/01/2011)
** User **
Better use of sizers (so better interface!)
No further problems with scrollbar in AccountPanel when there is a lot of operations
No further problems with scrollbar in AccountPanel/SearchPanel when there is a lot of operations
Better fit of interface when displaying grouped operations
** Dev **
@ -17,3 +17,4 @@ v0.2_dev (29/01/2011)
Unordered accounts (makes account selection points to bad indexes on account graph)
Bug in account creation (readonly fields)
Bug in search bad computation of month with start_date and end_date
Grouped operations have bad month/year in SearchPanel

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