diff options
Diffstat (limited to 'source/pdf/pdf-function.c')
-rw-r--r-- | source/pdf/pdf-function.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/source/pdf/pdf-function.c b/source/pdf/pdf-function.c index 2804f952..979e9ec9 100644 --- a/source/pdf/pdf-function.c +++ b/source/pdf/pdf-function.c @@ -869,7 +869,7 @@ load_postscript_func(fz_context *ctx, pdf_document *doc, pdf_function *func, pdf } fz_catch(ctx) { - fz_rethrow_message(ctx, "cannot parse calculator function (%d %d R)", num, gen); + fz_rethrow(ctx); } func->base.size += func->u.p.cap * sizeof(psobj); @@ -1684,15 +1684,8 @@ pdf_load_function(fz_context *ctx, pdf_document *doc, pdf_obj *dict, int in, int } fz_catch(ctx) { - int type = func->type; fz_drop_function(ctx, (fz_function *)func); - fz_rethrow_message(ctx, "cannot load %s function (%d %d R)", - type == SAMPLE ? "sampled" : - type == EXPONENTIAL ? "exponential" : - type == STITCHING ? "stitching" : - type == POSTSCRIPT ? "calculator" : - "unknown", - pdf_to_num(ctx, dict), pdf_to_gen(ctx, dict)); + fz_rethrow(ctx); } return (fz_function *)func; |