diff options
Diffstat (limited to 'Build/source/texk/dvipdf-x/src/pdfdoc.c')
-rw-r--r-- | Build/source/texk/dvipdf-x/src/pdfdoc.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Build/source/texk/dvipdf-x/src/pdfdoc.c b/Build/source/texk/dvipdf-x/src/pdfdoc.c index 862789ec714..4b69d17faa4 100644 --- a/Build/source/texk/dvipdf-x/src/pdfdoc.c +++ b/Build/source/texk/dvipdf-x/src/pdfdoc.c @@ -1645,7 +1645,7 @@ pdf_doc_close_names (pdf_doc *p) void pdf_doc_add_annot (unsigned page_no, const pdf_rect *rect, - pdf_obj *annot_dict, int new_annot) + pdf_obj *annot_dict) { pdf_doc *p = &pdoc; pdf_page *page; @@ -1686,9 +1686,6 @@ pdf_doc_add_annot (unsigned page_no, const pdf_rect *rect, pdf_add_array(page->annots, pdf_ref_obj(annot_dict)); - if (new_annot) - pdf_doc_add_goto(annot_dict); - return; } @@ -2646,10 +2643,9 @@ pdf_doc_end_grabbing (pdf_obj *attrib) static struct { int dirty; - int broken; pdf_obj *annot_dict; pdf_rect rect; -} breaking_state = {0, 0, NULL, {0.0, 0.0, 0.0, 0.0}}; +} breaking_state = {0, NULL, {0.0, 0.0, 0.0, 0.0}}; static void reset_box (void) @@ -2663,7 +2659,6 @@ void pdf_doc_begin_annot (pdf_obj *dict) { breaking_state.annot_dict = dict; - breaking_state.broken = 0; reset_box(); } @@ -2684,10 +2679,8 @@ pdf_doc_break_annot (void) annot_dict = pdf_new_dict(); pdf_merge_dict(annot_dict, breaking_state.annot_dict); pdf_doc_add_annot(pdf_doc_current_page_number(), &(breaking_state.rect), - annot_dict, !breaking_state.broken); + annot_dict); pdf_release_obj(annot_dict); - - breaking_state.broken = 1; } reset_box(); } |