summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-17 17:55:38 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-17 17:55:38 +0200
commit4804f72d73d764f3320742348273bd2b98d7f306 (patch)
treeff4548ec8872e13867f3d16075dbaac978bc1fbd
parente824f2826911dc90e022c522b8ad6531447c5219 (diff)
downloadluatexbase-4804f72d73d764f3320742348273bd2b98d7f306.tar.gz
reintroduce checks for prototype validity
-rw-r--r--luatexbase-attr.dtx2
1 files changed, 1 insertions, 1 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index 638cd31..5b7288f 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -535,7 +535,7 @@ local new_user_whatsit = function (req, package)
id = new_user_whatsit_id(req, package)
whatsit = newnode(whatsit_t, user_defined_t)
whatsit.user_id = id
- else -- node
+ elseif req.id == whatsit_t and req.subtype == user_defined_t then
id = req.user_id
whatsit = copynode(req)
if not whatsit_ids[id] then