Like HTML, text-plain contents have no intrinsic dimensions.

svn path=/trunk/netsurf/; revision=12057
This commit is contained in:
Michael Drake 2011-03-15 15:08:10 +00:00
parent 1d764f7bf7
commit 88cf21939c

View File

@ -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;