Add some verification to SearchPanel & wxID_ANY in place of -1
This commit is contained in:
@@ -111,8 +111,8 @@ void GridAccount::InsertOperation(User* user, Operation* op, int line, bool fix,
|
||||
|
||||
InsertRows(line, 1);
|
||||
|
||||
SetCellEditor(line, DEBIT, new wxGridCellFloatEditor(-1, 2));
|
||||
SetCellEditor(line, CREDIT, new wxGridCellFloatEditor(-1, 2));
|
||||
SetCellEditor(line, DEBIT, new wxGridCellFloatEditor(wxID_ANY, 2));
|
||||
SetCellEditor(line, CREDIT, new wxGridCellFloatEditor(wxID_ANY, 2));
|
||||
wxGridCellChoiceEditor* accountEditor = new wxGridCellChoiceEditor(user->GetAccountsNumber(), _accounts, false);
|
||||
SetCellEditor(line, ACCOUNT, accountEditor);
|
||||
wxGridCellChoiceEditor* categoryEditor = new wxGridCellChoiceEditor(user->GetCategoriesNumber()-1, _categories+1, false);
|
||||
|
||||
Reference in New Issue
Block a user