diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-09 18:22:38 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-14 17:08:29 +0100 |
commit | 7350d67f358d4f04643f43003861290ab162eaec (patch) | |
tree | be06d765665c975184a162831d0efda51a4824e1 /source/pdf/pdf-stream.c | |
parent | c024ff2f58a98757bc69705ca6ddf865a58dbb45 (diff) | |
download | mupdf-7350d67f358d4f04643f43003861290ab162eaec.tar.xz |
Make pdf_is_stream work on loaded stream dictionary objects as well.
Diffstat (limited to 'source/pdf/pdf-stream.c')
-rw-r--r-- | source/pdf/pdf-stream.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c index 57167eda..7f58d6c0 100644 --- a/source/pdf/pdf-stream.c +++ b/source/pdf/pdf-stream.c @@ -19,8 +19,9 @@ pdf_obj_num_is_stream(fz_context *ctx, pdf_document *doc, int num, int gen) int pdf_is_stream(fz_context *ctx, pdf_obj *obj) { - return pdf_obj_num_is_stream(ctx, pdf_get_indirect_document(ctx, obj), - pdf_to_num(ctx, obj), pdf_to_gen(ctx, obj)); + pdf_document *doc = pdf_get_bound_document(ctx, obj); + int num = pdf_obj_parent_num(ctx, obj); + return pdf_obj_num_is_stream(ctx, doc, num, 0); } /* |