From 270ef59a98d34fef418fb6cd27e46f3edc912948 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 28 Mar 2010 12:56:39 +0000 Subject: Merge jmb/new-cache; r=dsilvers,rs=vince svn path=/trunk/netsurf/; revision=10180 --- desktop/textinput.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'desktop/textinput.c') diff --git a/desktop/textinput.c b/desktop/textinput.c index 5083d8c78..7739140fb 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -2091,11 +2091,14 @@ bool textarea_cut(struct browser_window *bw, void textarea_reflow(struct browser_window *bw, struct box *textarea, struct box *inline_container) { + struct content *c = hlcache_handle_get_content(bw->current_content); int width = textarea->width; int height = textarea->height; + + assert(c != NULL); + if (!layout_inline_container(inline_container, width, - textarea, 0, 0, - bw->current_content)) + textarea, 0, 0, c)) warn_user("NoMemory", 0); textarea->width = width; textarea->height = height; -- cgit v1.2.3