From 312b748fd7685e5f7b157370d1ba86137e16e3eb Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 2 Jun 2004 21:04:35 +0000 Subject: [project @ 2004-06-02 21:04:35 by bursa] Update call to layout_block_context() for error handling. svn path=/import/netsurf/; revision=913 --- desktop/browser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3