summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-04-28 20:27:55 +0200
committerElie Roux <elie.roux@telecom-bretagne.eu>2013-04-28 20:27:55 +0200
commit167c1b6ba8310c4adc0275fab52e746711aadab5 (patch)
treef2d1d57a0f5e0cac8c8f9fdea3ba12a6b6805f90
parent2ad4714697363925cb422b3747a598fcc540602b (diff)
downloadluatexbase-167c1b6ba8310c4adc0275fab52e746711aadab5.tar.gz
I had forgotten something...
-rw-r--r--luatexbase-attr.dtx12
1 files 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}
%