diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-07-23 12:29:58 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-07-23 12:29:58 +0000 |
commit | 90f3bd40a3945c8f0585224212538a70ea04df3a (patch) | |
tree | 98aca6963bc3d9d73ec955a6c330f4457558fbda /Build/source/texk/dvipdfm-x/pdfximage.c | |
parent | f3157a462b1dc22cf359de5a1fa36d9731ca3eb5 (diff) |
dvipdfm-x: Avoid warnings.
git-svn-id: svn://tug.org/texlive/trunk@37932 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/pdfximage.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/pdfximage.c | 12 |
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 } } |