summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/lpdf-lmt.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-03-12 18:45:40 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-03-12 18:45:40 +0100
commit188632f4b0f71c5170a20f1b151bde68f603bfd9 (patch)
tree49a5a917a1ce6f17cbb6f542dff5b8254cd74c70 /tex/context/base/mkxl/lpdf-lmt.lmt
parentb7a7de31716616b7a5176259e2b60349f8089615 (diff)
downloadcontext-188632f4b0f71c5170a20f1b151bde68f603bfd9.tar.gz
2022-03-12 11:26:00
Diffstat (limited to 'tex/context/base/mkxl/lpdf-lmt.lmt')
-rw-r--r--tex/context/base/mkxl/lpdf-lmt.lmt11
1 files changed, 8 insertions, 3 deletions
diff --git a/tex/context/base/mkxl/lpdf-lmt.lmt b/tex/context/base/mkxl/lpdf-lmt.lmt
index 9bb3319d4..6b623b372 100644
--- a/tex/context/base/mkxl/lpdf-lmt.lmt
+++ b/tex/context/base/mkxl/lpdf-lmt.lmt
@@ -1529,7 +1529,7 @@ local flushimage do
local d = -depth + half
local w = width - line
local t = total - line
- if baseline then
+ if baseline and w > 0 then
rule = f_y(line,half,d,w,t,half,w)
else
rule = f_x(line,half,d,w,t)
@@ -3406,8 +3406,13 @@ do
converter(driver,texgetbox(boxnumber),"page")
end
- localconverter = function(...)
- converter(useddriver,...)
+-- localconverter = function(...)
+-- print(...) -- ok when we add this
+-- converter(useddriver,...) -- otherwise nil .. lua bug
+-- end
+
+ localconverter = function(a,b,c,d)
+ converter(useddriver,a,b,c,d)
end
drivers.install {