summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-pdf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/mlib-pdf.lua')
-rw-r--r--tex/context/base/mkiv/mlib-pdf.lua13
1 files changed, 6 insertions, 7 deletions
diff --git a/tex/context/base/mkiv/mlib-pdf.lua b/tex/context/base/mkiv/mlib-pdf.lua
index 524e930a9..ece332d84 100644
--- a/tex/context/base/mkiv/mlib-pdf.lua
+++ b/tex/context/base/mkiv/mlib-pdf.lua
@@ -400,7 +400,7 @@ function metapost.flush(specification,result)
local linecap = -1
local linejoin = -1
local dashed = false
-local linewidth = false
+ local linewidth = false
local llx = properties.llx
local lly = properties.lly
local urx = properties.urx
@@ -533,10 +533,10 @@ local linewidth = false
if pen then
if pen.type == "elliptical" then
transformed, penwidth = pen_characteristics(original) -- boolean, value
-if penwidth ~= linewidth then
- result[#result+1] = f_w(penwidth) -- todo: only if changed
- linewidth = penwidth
-end
+ if penwidth ~= linewidth then
+ result[#result+1] = f_w(penwidth)
+ linewidth = penwidth
+ end
if objecttype == "fill" then
objecttype = "both"
end
@@ -624,8 +624,7 @@ end
end
if object.grouped then
-- can be qQ'd so changes can end up in groups
- miterlimit, linecap, linejoin, dashed = -1, -1, -1, "" -- was false
-linewidth = false
+ miterlimit, linecap, linejoin, dashed, linewidth = -1, -1, -1, "", false
end
end
end