summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-page.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-09-22 16:00:21 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-10-07 17:22:58 +0200
commit8e244f7e2add3606283c0c797d75067fd01ad740 (patch)
tree1d3d70646b637792865c0b14be37127eb5eef250 /source/pdf/pdf-page.c
parent170f35a5802ec7093b00fb2e39bbde3756516f15 (diff)
downloadmupdf-8e244f7e2add3606283c0c797d75067fd01ad740.tar.xz
Remove separate tmp/deleted/changed annotation lists.
Use a flag in the pdf_annot struct instead. Don't pass pdf_document to annotation edit functions.
Diffstat (limited to 'source/pdf/pdf-page.c')
-rw-r--r--source/pdf/pdf-page.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c
index dae0d49d..73d01480 100644
--- a/source/pdf/pdf-page.c
+++ b/source/pdf/pdf-page.c
@@ -511,10 +511,7 @@ pdf_drop_page_imp(fz_context *ctx, pdf_page *page)
fz_drop_link(ctx, page->links);
if (page->annots)
pdf_drop_annots(ctx, page->annots);
- if (page->deleted_annots)
- pdf_drop_annots(ctx, page->deleted_annots);
- if (page->tmp_annots)
- pdf_drop_annots(ctx, page->tmp_annots);
+
/* doc->focus, when not NULL, refers to one of
* the annotations and must be NULLed when the
* annotations are destroyed. doc->focus_obj
@@ -551,8 +548,6 @@ pdf_new_page(fz_context *ctx, pdf_document *doc)
page->links = NULL;
page->annots = NULL;
page->annot_tailp = &page->annots;
- page->deleted_annots = NULL;
- page->tmp_annots = NULL;
page->incomplete = 0;
return page;
@@ -587,7 +582,7 @@ pdf_load_page(fz_context *ctx, pdf_document *doc, int number)
fz_matrix page_ctm;
pdf_page_transform(ctx, page, &page_mediabox, &page_ctm);
page->links = pdf_load_link_annots(ctx, doc, obj, &page_ctm);
- pdf_load_annots(ctx, doc, page, obj);
+ pdf_load_annots(ctx, page, obj);
}
}
fz_catch(ctx)