r10091 jmb - /branches/jmb/new-cache/desktop/textinput.c

netsurf at semichrome.net netsurf at semichrome.net
Sun Feb 28 23:30:18 GMT 2010


Author: jmb
Date: Sun Feb 28 17:30:18 2010
New Revision: 10091

URL: http://source.netsurf-browser.org?rev=10091&view=rev
Log:
Squash warning

Modified:
    branches/jmb/new-cache/desktop/textinput.c

Modified: branches/jmb/new-cache/desktop/textinput.c
URL: http://source.netsurf-browser.org/branches/jmb/new-cache/desktop/textinput.c?rev=10091&r1=10090&r2=10091&view=diff
==============================================================================
--- branches/jmb/new-cache/desktop/textinput.c (original)
+++ branches/jmb/new-cache/desktop/textinput.c Sun Feb 28 17:30:18 2010
@@ -2091,11 +2091,14 @@
 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;




More information about the netsurf-commits mailing list