summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-03-12 04:30:50 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-03-12 04:30:50 +0000
commit43053489cfb1957b1779be81ba6bd1ac96f71165 (patch)
tree765d6450c49312858c553aae25fbd8d2e1b1abbd /Build/source/texk/dvipdfm-x
parentfd994d7434131365159843eaa23f38ac4d8cd8da (diff)
dvipdfm-x/jpegimage.c: Fix a bug introduced by me on 2015-02-16.
git-svn-id: svn://tug.org/texlive/trunk@36494 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog4
-rw-r--r--Build/source/texk/dvipdfm-x/jpegimage.c11
2 files changed, 12 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 6a6ffdfe079..302117d85b6 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,7 @@
+2015-03-12 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
+
+ * jpegimage.c: Fix a bug introduced by me on 2015-02-16.
+
2015-03-01 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
* spc_tpic.c: Make tpic "ar" command dvips compatible to fix the problem
diff --git a/Build/source/texk/dvipdfm-x/jpegimage.c b/Build/source/texk/dvipdfm-x/jpegimage.c
index 2e154ddc367..113967a1124 100644
--- a/Build/source/texk/dvipdfm-x/jpegimage.c
+++ b/Build/source/texk/dvipdfm-x/jpegimage.c
@@ -669,9 +669,14 @@ read_APP1_Exif (struct JPEG_info *j_info, FILE *fp, unsigned short length)
}
}
}
-
- j_info->xdpi = xres * res_unit;
- j_info->ydpi = yres * res_unit;
+/*
+ Do not overwrite if j_info->xdpi and j_info->ydpi are
+ already determined as JFIF
+*/
+ if (j_info->xdpi < 0.1 && j_info->ydpi < 0.1) {
+ j_info->xdpi = xres * res_unit;
+ j_info->ydpi = yres * res_unit;
+ }
err:
RELEASE(buffer);