summaryrefslogtreecommitdiff
path: root/source/fitz/colorspace-imp.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-10-12 19:39:27 +0100
committerRobin Watts <robin.watts@artifex.com>2017-10-13 15:57:24 +0100
commit365b009b648700e90ed0c83791849ba86b3f3678 (patch)
tree1bffb9b021f22d5fe2db6dd7adf62e42135de236 /source/fitz/colorspace-imp.h
parentba68165a83f181848670b871dc07afb8dda4fb3a (diff)
downloadmupdf-365b009b648700e90ed0c83791849ba86b3f3678.tar.xz
Fix further problem seen in PDF_2.0_FTS/fts_23_2311.pdf
This file has a type 3 font in it. It first uses a 'd1' glyph, that uses a pattern. Accordingly, we we render that pattern to a mask tile and store that tile. Then it uses a 'd0' glyph, which uses the same pattern. The cache is checked, and we erroneously pick up the cached tile to reuse it - but this is not a colored rendering, so we assert on plotting. The fix is to ensure that the required colorspaces match. This requires us to add the colorspace to the tile key. Unfortunately, this means that colorspaces have to become key_storable, so the patch is slightly larger than would otherwise be the case.
Diffstat (limited to 'source/fitz/colorspace-imp.h')
-rw-r--r--source/fitz/colorspace-imp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/colorspace-imp.h b/source/fitz/colorspace-imp.h
index 0ca960a0..7f4ecef6 100644
--- a/source/fitz/colorspace-imp.h
+++ b/source/fitz/colorspace-imp.h
@@ -24,7 +24,7 @@ void fz_cmm_fin_profile(fz_context *ctx, fz_iccprofile *profile);
struct fz_colorspace_s
{
- fz_storable storable;
+ fz_key_storable key_storable;
size_t size;
char name[24];
unsigned char n;