diff options
Diffstat (limited to 'desktop/browser.c')
-rw-r--r-- | desktop/browser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 94744a0b2..8f1bb9a0c 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1035,7 +1035,9 @@ void browser_window_textarea_callback(struct browser_window *bw, char key, void /* reflow textarea preserving width and height */ width = textarea->width; height = textarea->height; - layout_block_context(textarea); + if (!layout_block_context(textarea, + bw->current_content->data.html.box_pool)) + warn_user("NoMemory", 0); textarea->width = width; textarea->height = height; } |