diff options
author | Paul Gardiner <paul@glidos.net> | 2012-05-31 16:38:54 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-06-12 16:55:29 +0100 |
commit | 15f43c4cccc960559ea6967c7fe1439cde54b0aa (patch) | |
tree | 0a9385cb96ef1e37d7fed5b158739494bf367bb6 /pdf/pdf_stream.c | |
parent | 2dfb38a5d55737e0bfaca9af5f77f17b3bde8f41 (diff) | |
download | mupdf-15f43c4cccc960559ea6967c7fe1439cde54b0aa.tar.xz |
A few general utility functions added for the sake of the forms work
Diffstat (limited to 'pdf/pdf_stream.c')
-rw-r--r-- | pdf/pdf_stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_stream.c b/pdf/pdf_stream.c index fcf9acdc..829210ea 100644 --- a/pdf/pdf_stream.c +++ b/pdf/pdf_stream.c @@ -358,7 +358,7 @@ pdf_open_image_stream(pdf_document *xref, int num, int gen, int orig_num, int or pdf_cache_object(xref, num, gen); /* RJW: "cannot load stream object (%d %d R)", num, gen */ - if (x->stm_ofs == 0) + if (x->stm_ofs == 0 && x->stm_buf == NULL) fz_throw(xref->ctx, "object is not a stream"); return pdf_open_filter(xref->file, xref, x->obj, orig_num, orig_gen, x->stm_ofs, params); |