summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-03-28 11:37:30 +0100
committerRobin Watts <robin.watts@artifex.com>2017-03-28 11:38:28 +0100
commit2c6de6e7a8374ba454f1852377fa65ac1216e626 (patch)
treec701b01dd8f9d5f02e846cc648c360c2ccdc20f5 /source/pdf
parenta7e597397133d4aaa717869258eac6ae34c7dad0 (diff)
downloadmupdf-2c6de6e7a8374ba454f1852377fa65ac1216e626.tar.xz
Rejig fz_new_annot to fz_new_derived_annot.
More consistent with the rest of the code.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-annot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c
index 6f622da4..539c4882 100644
--- a/source/pdf/pdf-annot.c
+++ b/source/pdf/pdf-annot.c
@@ -371,7 +371,7 @@ pdf_annot_transform(fz_context *ctx, pdf_annot *annot, fz_matrix *annot_ctm)
pdf_annot *pdf_new_annot(fz_context *ctx, pdf_page *page)
{
- pdf_annot *annot = fz_new_annot(ctx, sizeof(pdf_annot));
+ pdf_annot *annot = fz_new_derived_annot(ctx, pdf_annot);
annot->super.drop_annot = (fz_annot_drop_fn*)pdf_drop_annot_imp;
annot->super.bound_annot = (fz_annot_bound_fn*)pdf_bound_annot;