summaryrefslogtreecommitdiff
path: root/tex/context/base/mlib-pdf.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2014-11-02 13:15:04 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2014-11-02 13:15:04 +0100
commite64cf645e43641c8e1ebb069b7c8bf86d736b01c (patch)
treec39d73332e689b0f72be562976823b40970b0640 /tex/context/base/mlib-pdf.lua
parentc0f7956c718fa1dbeeeb337cd5439164060698d1 (diff)
downloadcontext-e64cf645e43641c8e1ebb069b7c8bf86d736b01c.tar.gz
2014-11-02 12:25:00
Diffstat (limited to 'tex/context/base/mlib-pdf.lua')
-rw-r--r--tex/context/base/mlib-pdf.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/mlib-pdf.lua b/tex/context/base/mlib-pdf.lua
index 1699e8fc5..025bfc144 100644
--- a/tex/context/base/mlib-pdf.lua
+++ b/tex/context/base/mlib-pdf.lua
@@ -445,7 +445,7 @@ function metapost.flush(result,flusher,askedfig)
result[#result+1] = evenodd and "W* n" or "W n"
elseif objecttype == "stop_clip" then
result[#result+1] = "Q"
- miterlimit, linecap, linejoin, dashed = -1, -1, -1, false
+ miterlimit, linecap, linejoin, dashed = -1, -1, -1, "" -- was false
elseif objecttype == "text" then
result[#result+1] = "q"
local ot = object.transform -- 3,4,5,6,1,2
@@ -491,9 +491,9 @@ function metapost.flush(result,flusher,askedfig)
local d = f_d(concat(dl.dashes or {}," "),dl.offset)
if d ~= dashed then
dashed = d
- result[#result+1] = dashed
+ result[#result+1] = d
end
- elseif dashed then
+ elseif dashed ~= false then -- was just dashed test
result[#result+1] = "[] 0 d"
dashed = false
end
@@ -559,7 +559,7 @@ function metapost.flush(result,flusher,askedfig)
end
if object.grouped then
-- can be qQ'd so changes can end up in groups
- miterlimit, linecap, linejoin, dashed = -1, -1, -1, false
+ miterlimit, linecap, linejoin, dashed = -1, -1, -1, "" -- was false
end
end
end