summaryrefslogtreecommitdiff
path: root/xps
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2021-02-17 23:01:03 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2021-02-17 23:01:44 -0800
commit72fcae41c44e4cf33e57b34b748521a00612be21 (patch)
tree1989610900c05dc1fb97fdd1fef2e49487435ca6 /xps
parent331fcb49b62a615976711cccdd3ff9796152a323 (diff)
downloadghostpdl-72fcae41c44e4cf33e57b34b748521a00612be21.tar.gz
Bug 703578 : XPS to PDF missing stroke
Caused by my "fix" for the pattern issue. I was inadvertently setting ca and CA to 0 during the gradient strokes.
Diffstat (limited to 'xps')
-rw-r--r--xps/xpsglyphs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xps/xpsglyphs.c b/xps/xpsglyphs.c
index 2dccc0bca..ecdbfe36b 100644
--- a/xps/xpsglyphs.c
+++ b/xps/xpsglyphs.c
@@ -811,8 +811,11 @@ xps_parse_glyphs(xps_context_t *ctx,
{
if (ctx->in_high_level_pattern)
{
- float value = 0;
- xps_set_color(ctx, ctx->gray, &value);
+ float value[2]; /* alpha and gray */
+
+ value[0] = gs_getfillconstantalpha(ctx->pgs);
+ value[1] = 0;
+ xps_set_color(ctx, ctx->gray, value);
}
ctx->fill_rule = 1; /* always use non-zero winding rule for char paths */