diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-08-08 07:07:04 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-08-08 07:20:58 +0200 |
commit | 00a1bc35ec13b886e939b7bcf4324b8166adf4f2 (patch) | |
tree | ef567ecb526d4e8c4cdeac2b6abb40796afcadb4 /src | |
parent | b62659ff9ede950224ee2412682328b6996c369b (diff) | |
download | luaotfload-00a1bc35ec13b886e939b7bcf4324b8166adf4f2.tar.gz |
[features] fix test for missing default feature (Thanks, Kim!)
This is a partial revert of 3cf26fc.. -- The test must be for features
not specified in the font definition. Also applies in the same manner to
the global defaults.
Diffstat (limited to 'src')
-rw-r--r-- | src/luaotfload-features.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luaotfload-features.lua b/src/luaotfload-features.lua index f01c45b..9b895ce 100644 --- a/src/luaotfload-features.lua +++ b/src/luaotfload-features.lua @@ -771,14 +771,14 @@ local apply_default_features = function (speclist) end for feat, state in next, requested do - if not speclist[feat] == nil then speclist[feat] = state end + if speclist[feat] == nil then speclist[feat] = state end end for feat, state in next, default_features.global do --- This is primarily intended for setting node --- mode unless “base” is requested, as stated --- in the manual. - if not speclist[feat] then speclist[feat] = state end + if speclist[feat] == nil then speclist[feat] = state end end return speclist end |