From 29850d0f30ddc415ee1ef6c5dad09671e12f924c Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Mon, 25 Jan 2016 04:04:02 +0000 Subject: web2c/luatxdir: sync with the upstream git-svn-id: svn://tug.org/texlive/trunk@39478 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/lua/limglib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Build/source') 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)); } -- cgit v1.2.3