summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-14 11:15:58 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:52 +0100
commitb3a9f7e5d838e095a5cf4f6d73a73316089190ec (patch)
tree96b8677b4d7d39037d007f2a1aa9e43972e32488 /source/html/css-parse.c
parent8758df6c290525eb2246977d84816d171e95309b (diff)
downloadmupdf-b3a9f7e5d838e095a5cf4f6d73a73316089190ec.tar.xz
html: Only draw the boxes and lines if they're on the current page.
Diffstat (limited to 'source/html/css-parse.c')
-rw-r--r--source/html/css-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index 63abee42..1708f550 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -759,7 +759,7 @@ struct rule *fz_parse_css_file(fz_context *ctx, struct rule *chain, const char *
{
buf = fz_read_all(stm, 0);
fz_write_buffer_byte(ctx, buf, 0);
- chain = fz_parse_css(ctx, chain, buf->data);
+ chain = fz_parse_css(ctx, chain, (char*)buf->data);
}
fz_always(ctx)
{