summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-function.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-27 17:00:29 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-27 17:01:06 +0200
commit29d53a0a460e00b3ec9dda508adbd2964077ab27 (patch)
tree1576b7808c03324739e56cdae57cd3a92d57b679 /source/pdf/pdf-function.c
parent4d9c36cfe000caeaf3dcc79f4ed004e0595975e4 (diff)
downloadmupdf-29d53a0a460e00b3ec9dda508adbd2964077ab27.tar.xz
Fix 696649: remove fz_rethrow_message calls.
Diffstat (limited to 'source/pdf/pdf-function.c')
-rw-r--r--source/pdf/pdf-function.c11
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;