Browse Source

neth: fix fields again

cl-refactor
Vincent Gariepy 11 years ago
parent
commit
f59ff56734
  1. 4
      neth/main.cpp

4
neth/main.cpp

@ -1022,7 +1022,7 @@ vector<string> form_dialog(vector<string> _sv, vector<string> _lv, vector<string
int _lfields = _lv.size(); int _lfields = _lv.size();
int _bfields = _bv.size(); int _bfields = _bv.size();
int maxfields = _sfields + _lfields + _bfields; int maxfields = _sfields + _lfields + _bfields;
vector<FIELD*> field(maxfields); FIELD *field[maxfields + 1];
int ch; int ch;
int starty = 6; int starty = 6;
@ -1061,7 +1061,7 @@ vector<string> form_dialog(vector<string> _sv, vector<string> _lv, vector<string
field[maxfields] = NULL; field[maxfields] = NULL;
// Create the form and post it // Create the form and post it
FORM *form = new_form(field.data()); FORM *form = new_form(field);
// Calculate the area required for the form // Calculate the area required for the form
scale_form(form, &_rows, &_cols); scale_form(form, &_rows, &_cols);

Loading…
Cancel
Save