From 88cf21939c8b846a2163fbce6e41c8e833dee4e3 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 15 Mar 2011 15:08:10 +0000 Subject: Like HTML, text-plain contents have no intrinsic dimensions. svn path=/trunk/netsurf/; revision=12057 --- desktop/browser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/browser.c b/desktop/browser.c index 55c9682ab..fafdf7b82 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -97,6 +97,7 @@ bool browser_window_redraw(struct browser_window *bw, int x, int y, int width = 0; int height = 0; bool plot_ok = true; + content_type content_type; if (bw == NULL) { LOG(("NULL browser window")); @@ -116,7 +117,8 @@ bool browser_window_redraw(struct browser_window *bw, int x, int y, plot.clip(clip); - if (content_get_type(bw->current_content) != CONTENT_HTML) { + content_type = content_get_type(bw->current_content); + if (content_type != CONTENT_HTML && content_type != CONTENT_TEXTPLAIN) { /* Set render area according to scale */ width = content_get_width(bw->current_content) * bw->scale; height = content_get_height(bw->current_content) * bw->scale; -- cgit v1.2.3