From fc452c7a082905f3c45b22b2455b4322d26bbaec Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 15 Nov 2017 12:49:43 +0000 Subject: 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. --- source/pdf/pdf-page.c | 5 ----- 1 file changed, 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); -- cgit v1.2.3