|
|
@ -1022,7 +1022,7 @@ vector<string> form_dialog(vector<string> _sv, vector<string> _lv, vector<string |
|
|
|
int _lfields = _lv.size(); |
|
|
|
int _bfields = _bv.size(); |
|
|
|
int maxfields = _sfields + _lfields + _bfields; |
|
|
|
FIELD *field[maxfields + 1]; |
|
|
|
vector<FIELD*> field(maxfields + 1); |
|
|
|
|
|
|
|
int ch; |
|
|
|
int starty = 6; |
|
|
@ -1058,10 +1058,12 @@ vector<string> form_dialog(vector<string> _sv, vector<string> _lv, vector<string |
|
|
|
set_field_back(field[bi], A_UNDERLINE); |
|
|
|
starty += 4; |
|
|
|
} |
|
|
|
|
|
|
|
// The FORM expects a NULL terminated list of fields
|
|
|
|
field[maxfields] = NULL; |
|
|
|
|
|
|
|
// Create the form and post it
|
|
|
|
FORM *form = new_form(field); |
|
|
|
FORM *form = new_form(field.data()); |
|
|
|
|
|
|
|
// Calculate the area required for the form
|
|
|
|
scale_form(form, &_rows, &_cols); |
|
|
|