summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-05-16 20:44:59 +0300
committerKhaled Hosny <khaledhosny@eglug.org>2010-05-16 21:21:59 +0300
commit659254b404dc7bc37b9dfc2c8e9ce8f55dfbd574 (patch)
treee57bc8a1573d11eba60f2fbcb0426d4880bf7397
parent855887d831ae93edfc760f973e2bedf23d76a53b (diff)
downloadluaotfload-659254b404dc7bc37b9dfc2c8e9ce8f55dfbd574.tar.gz
Simplify
If it isn't a font collection file (which is true if we reach here) then the index always == 1. As a side effect, fixes a mysterious bug with --no-shell-escape causing all files to have empty index and the same timestamp.
-rw-r--r--otfl-font-nms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index ff848ce..11ab891 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -340,7 +340,7 @@ local function load_font(filename, fontnames, newfontnames, texmf)
else
local fullinfo = font_fullinfo(filename, false, texmf)
newmappings[#newmappings+1] = fullinfo
- newstatus[filename].index[#newstatus[filename].index+1] = #newmappings
+ newstatus[filename].index[1] = #newmappings
end
else
if trace_loading then