diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-10-13 17:23:54 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-10-13 17:23:54 +0200 |
commit | cc7fcf11d31b2db23ba3adca896507f9faf128cc (patch) | |
tree | e77d461cccb9ab50aa4f83f73f1e57ece4bd732d /tex/context/base/mkiv/publ-ini.lua | |
parent | b2db36adbd89b2dba9591da5fc13b4eba57d581e (diff) | |
download | context-cc7fcf11d31b2db23ba3adca896507f9faf128cc.tar.gz |
2021-10-13 16:58:00
Diffstat (limited to 'tex/context/base/mkiv/publ-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/publ-ini.lua | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/publ-ini.lua b/tex/context/base/mkiv/publ-ini.lua index 584b23dbf..bc0a9106f 100644 --- a/tex/context/base/mkiv/publ-ini.lua +++ b/tex/context/base/mkiv/publ-ini.lua @@ -3523,10 +3523,14 @@ do local list = structures.lists.tobesaved local done = false for i=1,#list do - local u = list[i].userdata - if u.btxref == tag then - done = true - break + local l = list[i] + local m = l.metadata + if m and m.kind == "btx" then + local u = l.userdata + if u and u.btxref == tag then + done = true + break + end end end ctx_doifelse(done) |