summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-01-25 04:04:02 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2016-01-25 04:04:02 +0000
commit29850d0f30ddc415ee1ef6c5dad09671e12f924c (patch)
treea229650ad2d9071d3ddd6b0eccb29f5430076951 /Build/source/texk
parent698089a8266790d85071dd0e2a18255caa0c28b3 (diff)
web2c/luatxdir: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@39478 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/limglib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/limglib.c b/Build/source/texk/web2c/luatexdir/lua/limglib.c
index 07467886b59..44f1d72bff0 100644
--- a/Build/source/texk/web2c/luatexdir/lua/limglib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/limglib.c
@@ -128,8 +128,12 @@ static void read_scale_img(image * a)
else {
read_img(ad);
}
- } else if (img_state(ad) == DICT_NEW) {
+ }
+ if ((img_type(ad) == IMG_TYPE_NONE) || (img_state(ad) == DICT_NEW)) {
normal_warning("image","don't rely on the image data to be okay");
+ img_width(a) = 0;
+ img_height(a) = 0;
+ img_depth(a) = 0;
} else if (is_wd_running(a) || is_ht_running(a) || is_dp_running(a)) {
img_dimen(a) = scale_img(ad, img_dimen(a), img_transform(a));
}