summaryrefslogtreecommitdiff
path: root/otfl-font-def.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-05-21 06:46:45 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-05-21 07:07:28 +0300
commit3cbef76101d9aaef3b2c355c58675bf9f386d949 (patch)
treee11465e3a2ae642973a74ec1a5202d5cf815b176 /otfl-font-def.lua
parent7714c6972814b0ff3175479b09d0139dd67c6ab0 (diff)
downloadluaotfload-3cbef76101d9aaef3b2c355c58675bf9f386d949.tar.gz
Sync with ConTeXt beta (beta 2010.05.20)
Diffstat (limited to 'otfl-font-def.lua')
-rw-r--r--otfl-font-def.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/otfl-font-def.lua b/otfl-font-def.lua
index f64bae5..0add703 100644
--- a/otfl-font-def.lua
+++ b/otfl-font-def.lua
@@ -501,14 +501,14 @@ a helper function.</p>
function define.check(features,defaults) -- nb adapts features !
local done = false
- if table.is_empty(features) then
- features, done = table.fastcopy(defaults), true
- else
+ if features and next(features) then
for k,v in next, defaults do
if features[k] == nil then
features[k], done = v, true
end
end
+ else
+ features, done = table.fastcopy(defaults), true
end
return features, done -- done signals a change
end