From ab0137d0a3f9f8fc686c8804fb910eb99ca9cd75 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 30 Jul 2017 22:20:15 +0000 Subject: luatexja (30jul17) git-svn-id: svn://tug.org/texlive/trunk@44924 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua') diff --git a/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua b/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua index 52286624ca9..9d650f2020a 100644 --- a/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua +++ b/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua @@ -530,7 +530,7 @@ do start_time_measure('box_primitive_hook') local list_dir = get_dir_count()%dir_math_mod local b = getbox(tex_getcount('ltj@tempcnta')) - if b then + if b and getlist(to_direct(b)) then local box_dir = get_box_dir(to_direct(b), dir_yoko) if box_dir%dir_math_mod ~= list_dir then ltjb.package_error( @@ -1159,7 +1159,6 @@ do finalize_inner(shipout_temp) setbox('global', "AtBeginShipoutBox", copy(getlist(shipout_temp))) setfield(shipout_temp, 'head',nil) - -- garbage collect --local m = collectgarbage('count') --if m>lua_mem_kb+20480 then -- cgit v1.2.3