diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-11-15 12:49:43 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-11-15 15:32:15 +0000 |
commit | fc452c7a082905f3c45b22b2455b4322d26bbaec (patch) | |
tree | d4738d903a56fe795c67eb76885e16b1677abf06 /source/pdf/pdf-page.c | |
parent | c1ae0d11b4bfd1f2f36e69f80ed7b7033b8e92f5 (diff) | |
download | mupdf-fc452c7a082905f3c45b22b2455b4322d26bbaec.tar.xz |
Bug 698740: Avoid NULL fz_default_colorspaces structures.
Remove code left over from development that is now wrong.
We should have default colorspaces in the system, even in
NON_ICC builds.
Diffstat (limited to 'source/pdf/pdf-page.c')
-rw-r--r-- | source/pdf/pdf-page.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c index da8a2394..881150b8 100644 --- a/source/pdf/pdf-page.c +++ b/source/pdf/pdf-page.c @@ -1022,11 +1022,6 @@ pdf_load_default_colorspaces(fz_context *ctx, pdf_document *doc, pdf_page *page) fz_default_colorspaces *default_cs; fz_colorspace *oi; - /* If we are doing color management check for internal default color spaces. */ - /* Photoshop is notorious for doing this in its PDF creation. */ - if (!fz_colorspace_is_icc(ctx, fz_device_rgb(ctx))) - return NULL; - default_cs = fz_new_default_colorspaces(ctx); res = pdf_page_resources(ctx, page); obj = pdf_dict_get(ctx, res, PDF_NAME_ColorSpace); |