From 0af7dc6b7a6b59b735efb25e93dd4e62be2126d5 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Fri, 14 Mar 2014 21:23:32 +0000 Subject: Sync XeTeX git-svn-id: svn://tug.org/texlive/trunk@33175 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/xetexdir/XeTeX_pic.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Build/source/texk/web2c/xetexdir/XeTeX_pic.c') diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_pic.c b/Build/source/texk/web2c/xetexdir/XeTeX_pic.c index ff4266be280..92233654232 100644 --- a/Build/source/texk/web2c/xetexdir/XeTeX_pic.c +++ b/Build/source/texk/web2c/xetexdir/XeTeX_pic.c @@ -33,7 +33,6 @@ authorization from the copyright holders. /* XeTeX_pic.c interface between xetex and graphics files - (not used on OS X -- we use ImageIO graphics importers instead) only needs to get image dimensions, not actually load/process the file */ @@ -110,7 +109,7 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) } goto done; } - + if (check_for_bmp(fp)) { struct bmp_info info; err = bmp_scan_file(&info, fp); @@ -120,7 +119,7 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) } goto done; } - + if (check_for_png(fp)) { struct png_info info; err = png_scan_file(&info, fp); @@ -129,10 +128,10 @@ find_pic_file(char** path, realrect* bounds, int pdfBoxType, int page) bounds->ht = (info.height * 72.27) / info.ydpi; } goto done; - } + } /* could support other file types here (TIFF, WMF, etc?) */ - + done: if (fp != NULL) fclose(fp); @@ -143,6 +142,6 @@ done: if (pic_path != NULL) free(pic_path); } - + return err; } -- cgit v1.2.3