summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x/pdfximage.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfximage.c')
-rw-r--r--Build/source/texk/dvipdfm-x/pdfximage.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/dvipdfm-x/pdfximage.c b/Build/source/texk/dvipdfm-x/pdfximage.c
index 7f91ac942fd..9e2e680b813 100644
--- a/Build/source/texk/dvipdfm-x/pdfximage.c
+++ b/Build/source/texk/dvipdfm-x/pdfximage.c
@@ -369,14 +369,14 @@ pdf_ximage_findresource (const char *ident, long page_no, pdf_obj *dict)
if (I->ident && !strcmp(ident, I->ident)) {
f = I->filename;
/*
- PageBox can be differrent. So we retry.
+ PageBox can be differrent. So we retry if PageBox != 0
*/
-#if 0
- if (I->page_no == page_no + (page_no < 0 ? I->page_count+1 : 0) &&
- I->attr_dict == dict) {
- return id;
+ if (PageBox == 0) {
+ if (I->page_no == page_no + (page_no < 0 ? I->page_count+1 : 0) &&
+ I->attr_dict == dict) {
+ return id;
+ }
}
-#endif
}
}