summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-07-30 22:20:15 +0000
committerKarl Berry <karl@freefriends.org>2017-07-30 22:20:15 +0000
commitab0137d0a3f9f8fc686c8804fb910eb99ca9cd75 (patch)
tree27c7e9685f74b7bcf70e1ce738faa684a4826067 /Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
parentee2ba58b71acb3f3395797014cae26262b39771e (diff)
luatexja (30jul17)
git-svn-id: svn://tug.org/texlive/trunk@44924 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua3
1 files changed, 1 insertions, 2 deletions
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