From 167c1b6ba8310c4adc0275fab52e746711aadab5 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Sun, 28 Apr 2013 20:27:55 +0200 Subject: I had forgotten something... --- luatexbase-attr.dtx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index be0a91c..ded08b3 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -363,10 +363,14 @@ attributes = {} % % \begin{macrocode} local luatex_sty_counter = 'LuT@AllocAttribute' -if tex.count[luatex_sty_counter] and tex.count[luatex_sty_counter] > -1 then - error("luatexbase error: attribute 0 has already been set by \newattribute" - .."macro from luatex.sty, not belonging to this package, this makes" - .."luaotfload unuseable. Please report to the maintainer of luatex.sty") +if tex.count[luatex_sty_counter] then + if tex.count[luatex_sty_counter] > -1 then + error("luatexbase error: attribute 0 has already been set by \newattribute" + .."macro from luatex.sty, not belonging to this package, this makes" + .."luaotfload unuseable. Please report to the maintainer of luatex.sty") + else + tex.count[luatex_sty_counter] = 0 + end end % \end{macrocode} % -- cgit v1.2.3