diff options
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r-- | desktop/textinput.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; |