Layout doesn't need to handle the old insane textarea box splitting now. Fixes Coverity:1109882.

This commit is contained in:
Michael Drake 2013-10-23 12:48:16 +01:00
parent 3e08819db9
commit 0bbaf1d24d
1 changed files with 1 additions and 12 deletions

View File

@ -2184,18 +2184,7 @@ static bool layout_text_box_split(html_content *content,
c2->flags |= CLONE;
/* Set remaining text in c2 */
if (split_box->parent->parent->gadget != NULL) {
/* Inside a form text input / textarea, special case */
/* TODO: Move text inputs to core textarea widget and remove
* this */
c2->text = talloc_strndup(content->bctx,
split_box->text + used_length,
split_box->length - used_length);
if (!c2->text)
return false;
} else {
c2->text += used_length;
}
c2->text += used_length;
/* Set c2 according to the remaining text */
c2->width -= new_width + space_width;