From 2c6de6e7a8374ba454f1852377fa65ac1216e626 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 28 Mar 2017 11:37:30 +0100 Subject: Rejig fz_new_annot to fz_new_derived_annot. More consistent with the rest of the code. --- source/pdf/pdf-annot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/pdf') 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; -- cgit v1.2.3