diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-06-22 19:58:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-06-22 19:58:00 +0200 |
commit | a9c288d372917c485a2882593ed18c8044bf82f1 (patch) | |
tree | 5dde88ef6591400030e42184ec2913b08ad394b9 /tex/context/base/spac-ver.lua | |
parent | 460d0ab518e3f51383c332b82045fe3ee14ca255 (diff) | |
download | context-a9c288d372917c485a2882593ed18c8044bf82f1.tar.gz |
beta 2014.06.22 19:58
Diffstat (limited to 'tex/context/base/spac-ver.lua')
-rw-r--r-- | tex/context/base/spac-ver.lua | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tex/context/base/spac-ver.lua b/tex/context/base/spac-ver.lua index cfcee0122..51d8f674e 100644 --- a/tex/context/base/spac-ver.lua +++ b/tex/context/base/spac-ver.lua @@ -888,7 +888,7 @@ local properties = nodes.properties.data specialmethods[1] = function(pagehead,pagetail,start,penalty) -- - if penalty < special_penalty_min or penalty > special_penalty_max then + if not pagehead or penalty < special_penalty_min or penalty > special_penalty_max then return end local current = pagetail @@ -1074,8 +1074,15 @@ local function collapser(head,where,what,trace,snap,a_snapmethod) -- maybe also -- local function getpagelist() if not pagehead then - pagehead = tonut(texlists.page_head) - pagetail = find_node_tail(pagehead) -- no texlists.page_tail yet-- no texlists.page_tail yet + pagehead = texlists.page_head + if pagehead then + pagehead = tonut(texlists.page_head) + pagetail = find_node_tail(pagehead) -- no texlists.page_tail yet-- no texlists.page_tail yet + else + pagetail = nil + end + else + pagetail = nil end return pagehead, pagetail end |