summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-10-07 08:49:43 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2018-10-07 08:49:43 +0000
commit445a8612db2fdd4258927e38c3b66dff7e493931 (patch)
tree12882efeaf2a027f9fe398739274e0cb3f4e7cfe
parenta8f2ff5802358553f7d2b04241d54a21f9e70877 (diff)
Clear static variables to allow PDF functions to be used more than once (Simon Cozens).
git-svn-id: svn://tug.org/texlive/trunk@48850 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog5
-rw-r--r--Build/source/texk/dvipdfm-x/pdfobj.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index b4841c875ce..07ac818ab04 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-07 Simon Cozens <simon@simon-cozens.org>
+
+ * pdfobj.c: Clear static variables to allow PDF funcfions to
+ be used more than once.
+
2018-10-02 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
* dvipdfmx.c: Fixed a bug in handling of command line option '-M'.
diff --git a/Build/source/texk/dvipdfm-x/pdfobj.c b/Build/source/texk/dvipdfm-x/pdfobj.c
index f5868f7d69d..f544cb90f62 100644
--- a/Build/source/texk/dvipdfm-x/pdfobj.c
+++ b/Build/source/texk/dvipdfm-x/pdfobj.c
@@ -538,6 +538,8 @@ pdf_out_flush (void)
#endif /* !LIBDPX */
MFCLOSE(pdf_output_file);
+ pdf_output_file_position = 0;
+ pdf_output_line_position = 0;
pdf_output_file = NULL;
}
#if defined(PDFOBJ_DEBUG)