summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-08-25 22:11:15 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-08-25 22:11:15 +0000
commit1a0f3aa1fa0597659767a1030ba6031991b71ff0 (patch)
tree6a5ff65efe75cc7a218a6a3a5fa55b7be9119dc8
parente7ec910845bef80da4c900f1e532a3d0f82199dd (diff)
dvipdfmx: remove MAX_IMAGES
git-svn-id: svn://tug.org/texlive/trunk@45126 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog5
-rw-r--r--Build/source/texk/dvipdfm-x/pdfximage.h3
-rw-r--r--Build/source/texk/dvipdfm-x/spc_pdfm.c8
3 files changed, 6 insertions, 10 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 412232ffb93..e3958bdd884 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-25 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * pdfximage.h, spc_pdfm.c: Remove MAX_IMAGES which is not
+ needed.
+
2017-08-06 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
* dpxutil.[ch], epdf.c, pdfdoc.[ch], pdfximage.c, xbb.c:
diff --git a/Build/source/texk/dvipdfm-x/pdfximage.h b/Build/source/texk/dvipdfm-x/pdfximage.h
index 9e1897fb2ca..0d6dea0c407 100644
--- a/Build/source/texk/dvipdfm-x/pdfximage.h
+++ b/Build/source/texk/dvipdfm-x/pdfximage.h
@@ -1,6 +1,6 @@
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
- Copyright (C) 2007-2016 by Jin-Hwan Cho and Shunsaku Hirata,
+ Copyright (C) 2007-2017 by Jin-Hwan Cho and Shunsaku Hirata,
the dvipdfmx project team.
Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>
@@ -102,6 +102,5 @@ pdf_ximage_set_attr (int xobj_id,
double llx, double lly, double urx, double ury);
/* Migrated from pdfobj.h. Those are not PDF object related... */
-#define MAX_IMAGES 5000 /* This may be enough */
#endif /* _PDFXIMAGE_H_ */
diff --git a/Build/source/texk/dvipdfm-x/spc_pdfm.c b/Build/source/texk/dvipdfm-x/spc_pdfm.c
index cad3ffe4768..37b0ee5b184 100644
--- a/Build/source/texk/dvipdfm-x/spc_pdfm.c
+++ b/Build/source/texk/dvipdfm-x/spc_pdfm.c
@@ -1028,14 +1028,6 @@ spc_handler_pdfm_image (struct spc_env *spe, struct spc_arg *args)
return -1;
}
- if (xobj_id > MAX_IMAGES - 1) {
- spc_warn(spe, "Too many images...");
- pdf_release_obj(fspec);
- if (ident)
- RELEASE(ident);
- return -1;
- }
-
if (!(ti.flags & INFO_DO_HIDE))
pdf_dev_put_image(xobj_id, &ti, spe->x_user, spe->y_user);