summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-02-21 18:04:37 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-02-21 18:04:37 +0200
commit49eebd59c5a30c3504af58e72a70791c7a06bcdc (patch)
tree25dbc2a2715563c96af5a806225ef59de0760717
parentf96e3da3a512247c8f5dddfd392c70d2f9243607 (diff)
downloadluaotfload-49eebd59c5a30c3504af58e72a70791c7a06bcdc.tar.gz
Fix bug with loading font feature
Make sure |kind| is defined before calling |string.lower()| on it.
-rw-r--r--otfl-luat-dum.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/otfl-luat-dum.lua b/otfl-luat-dum.lua
index 19e95e2..a81131d 100644
--- a/otfl-luat-dum.lua
+++ b/otfl-luat-dum.lua
@@ -62,7 +62,7 @@ local remapper = {
function resolvers.find_file(name,kind)
name = string.gsub(name,"\\","\/")
- kind = string.lower(kind)
+ kind = kind and string.lower(kind)
return kpse.find_file(name,(kind and kind ~= "" and (remapper[kind] or kind)) or "tex")
end