From 9ae52885ef25c28a14ce0f6680026a99d1deef6d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 3 Aug 2017 18:47:48 +0100 Subject: Fix separation finding code. --- source/pdf/pdf-page.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c index 5d426455..12319678 100644 --- a/source/pdf/pdf-page.c +++ b/source/pdf/pdf-page.c @@ -783,12 +783,13 @@ scan_page_seps(fz_context *ctx, pdf_obj *res, fz_separations **seps, res_finder_ /* Recurse on the forms. Throw if we cycle */ for (i = 0; i < len; i++) { - xo = pdf_dict_get_val(ctx, forms, i++); + xo = pdf_dict_get_val(ctx, forms, i); if (pdf_mark_obj(ctx, xo)) fz_throw(ctx, FZ_ERROR_GENERIC, "cycle in forms"); scan_page_seps(ctx, pdf_dict_get(ctx, xo, PDF_NAME_Resources), seps, fn); + fn(ctx, seps, pdf_dict_get(ctx, xo, PDF_NAME_ColorSpace)); pdf_unmark_obj(ctx, xo); xo = NULL; } -- cgit v1.2.3