[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Fix smaller errors (70b403d)

Marcel Fabian Krüger tex at 2krueger.de
Fri Feb 21 21:20:23 CET 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/70b403d61f36574a06e38b5fd6190cb732c622b2

>---------------------------------------------------------------

commit 70b403d61f36574a06e38b5fd6190cb732c622b2
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Feb 21 21:20:23 2020 +0100

    Fix smaller errors


>---------------------------------------------------------------

70b403d61f36574a06e38b5fd6190cb732c622b2
 src/luaotfload-colors.lua | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/luaotfload-colors.lua b/src/luaotfload-colors.lua
index 8f0d3b4..f308662 100644
--- a/src/luaotfload-colors.lua
+++ b/src/luaotfload-colors.lua
@@ -84,7 +84,7 @@ local res = nil
 
 --- float -> unit
 local function pageresources(alpha)
-    res = res or {}
+    res = res or {true} -- Initialize with /TransGs1
     local f = res[alpha]
         or stringformat("/TransGs%.3g gs", alpha, alpha)
     res[alpha] = f
@@ -112,7 +112,6 @@ local function transparent_stack()
     -- if token.is_defined'TRP at colorstack' then -- transparency
         -- transparent_stack = tonumber(token.get_macro'TRP at colorstack')
     -- else
-        res[1] = true
         transparent_stack = pdf.newcolorstack("/TransGs1 gs","direct",true)
     -- end
     return transparent_stack
@@ -217,10 +216,10 @@ local function node_colorize (head, toplevel, current_color, current_transparent
     if toplevel then
         local nn = nodetail(n_list)
         if current_color then
-            head, nn, current_color = color_whatsit(head, nn, color_stack, false, true)
+            head, nn, current_color = color_whatsit(head, nn, color_stack, current_color, nil, true)
         end
         if current_transparent then
-            head, nn, current_transparent = color_whatsit(head, nn, transparent_stack, false, true)
+            head, nn, current_transparent = color_whatsit(head, nn, transparent_stack, current_color, nil, true)
         end
     end
 





More information about the latex3-commits mailing list.