summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-object.c
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2014-02-22 23:31:08 +0100
committerRobin Watts <robin.watts@artifex.com>2014-02-25 12:15:19 +0000
commitd49431c30ff2d267a656c223aa28f309d4a98ee9 (patch)
treeb5b4beab8b6b8ea10daae7ec2f84b74e20dda479 /source/pdf/pdf-object.c
parent5d8f2a362e588ddc40422abe3c43402ff67fa3ec (diff)
downloadmupdf-d49431c30ff2d267a656c223aa28f309d4a98ee9.tar.xz
make pdf_new_obj_from_str throw on error
Currently, pdf_new_obj_from_str returns NULL if the object can't be parsed. This isn't consistent with how all other pdf_new_* methods behave which is to throw on errors.
Diffstat (limited to 'source/pdf/pdf-object.c')
-rw-r--r--source/pdf/pdf-object.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c
index f8ece944..16fab07c 100644
--- a/source/pdf/pdf-object.c
+++ b/source/pdf/pdf-object.c
@@ -1409,8 +1409,7 @@ pdf_obj *pdf_new_obj_from_str(pdf_document *doc, const char *src)
}
fz_catch(ctx)
{
- fz_rethrow_if(ctx, FZ_ERROR_TRYLATER);
- return NULL;
+ fz_rethrow(ctx);
}
return result;