summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-11-15 12:49:43 +0000
committerRobin Watts <robin.watts@artifex.com>2017-11-15 15:32:15 +0000
commitfc452c7a082905f3c45b22b2455b4322d26bbaec (patch)
treed4738d903a56fe795c67eb76885e16b1677abf06
parentc1ae0d11b4bfd1f2f36e69f80ed7b7033b8e92f5 (diff)
downloadmupdf-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.
-rw-r--r--source/pdf/pdf-page.c5
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);