diff options
Diffstat (limited to 'source/pdf/pdf-image.c')
-rw-r--r-- | source/pdf/pdf-image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c index df745616..04e1c1f0 100644 --- a/source/pdf/pdf-image.c +++ b/source/pdf/pdf-image.c @@ -441,7 +441,7 @@ pdf_add_image(fz_context *ctx, pdf_document *doc, fz_image *image, int mask) } if (image->mask) pdf_add_image(ctx, doc, image->mask, 0); - imref = pdf_new_ref(ctx, doc, imobj); + imref = pdf_add_object(ctx, doc, imobj); pdf_update_stream(ctx, doc, imref, buffer, 1); /* Add ref to our image resource hash table. */ |