diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-02-25 00:27:20 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-02-25 00:28:40 +0000 |
commit | 4f7fbefa78f6b08fe340f4acb38c617384d88647 (patch) | |
tree | 1cf29848d8314747e52526714e9ab0a04d2a7ce8 /source/fitz | |
parent | 621f8c56e90170bbb1579319187eeaa74880caa3 (diff) | |
download | mupdf-4f7fbefa78f6b08fe340f4acb38c617384d88647.tar.xz |
Text device; collect matrix and bbox for images too.
We were not filling in the matrix and bbox fields for images
collected as part of the text extraction device. Fixed here.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/stext-device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c index 3213406e..da8a63f0 100644 --- a/source/fitz/stext-device.c +++ b/source/fitz/stext-device.c @@ -862,6 +862,12 @@ fz_text_fill_image_mask(fz_context *ctx, fz_device *dev, fz_image *img, const fz block->cspace = fz_keep_colorspace(ctx, cspace); if (cspace) memcpy(block->colors, color, sizeof(block->colors[0])*cspace->n); + block->mat = *ctm; + block->bbox.x0 = 0; + block->bbox.y0 = 0; + block->bbox.x1 = 1; + block->bbox.y1 = 1; + fz_transform_rect(&block->bbox, ctm); page->len++; } |