diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-11-14 15:12:01 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-11-14 15:13:48 +0000 |
commit | 8e540356340df6c4b1ba332c112045726da263d1 (patch) | |
tree | 97b39cb01d2ef210c59c05e864c23ac7e79ec493 /source/pdf | |
parent | f6252328579f7046a9ea25b4cf2c6d6d0f68ca6d (diff) | |
download | mupdf-8e540356340df6c4b1ba332c112045726da263d1.tar.xz |
Ensure filter inits the Trm values on a BT.
Otherwise we can get empty bbox values.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-op-filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-op-filter.c b/source/pdf/pdf-op-filter.c index 13db4b84..b69f51ac 100644 --- a/source/pdf/pdf-op-filter.c +++ b/source/pdf/pdf-op-filter.c @@ -1021,6 +1021,8 @@ pdf_filter_BT(fz_context *ctx, pdf_processor *proc) { pdf_filter_processor *p = (pdf_filter_processor*)proc; filter_flush(ctx, p, 0); + p->tos.tm = fz_identity; + p->tos.tlm = fz_identity; if (p->chain->op_BT) p->chain->op_BT(ctx, p->chain); } |