fix the bug where form reset with textarea's would segfault. just cut-n-pasted one line from the text input element's reset method.

This commit is contained in:
toshok 1998-05-21 07:18:51 +00:00
Родитель 0e466f4023
Коммит 6625b23211
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -2322,6 +2322,8 @@ textarea_reset(FEFormData *fed,
int16 charset = text_attr->charset;
unsigned char *loc;
if (!default_text) default_text = "";
fe_forms_clean_text (fed->context, charset, default_text, False);
XtVaSetValues (ta_fed->text_widget, XmNcursorPosition, 0, 0);