diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2021-03-26 11:38:47 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2021-03-26 11:38:47 +0000 |
commit | 56e145592beb56b514a88b567042c36cb6935e87 (patch) | |
tree | 8de2257639ea6518069183371b8ece455d4e2e22 | |
parent | 280368d940dea52eb0f79f4ce4ad2fd4c5ee67e7 (diff) | |
download | ghostpdl-56e145592beb56b514a88b567042c36cb6935e87.tar.gz |
Fix the initial colour for DeviceGray
We were accidentally setting the initial colour on a switch to the
Device Gray colour space to 1 instead of 0, which meant the initial
colour was white not black, as it should be.
Fixes several files:
Bug690921.pdf, Bug691602.pdf Bug691982.pdf, inherited_resources.pdf
fts_25_2525.pdf and fts_25_2527.pdf
-rw-r--r-- | pdf/pdf_colour.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_colour.c b/pdf/pdf_colour.c index 6c018458c..c36e150c8 100644 --- a/pdf/pdf_colour.c +++ b/pdf/pdf_colour.c @@ -2066,7 +2066,7 @@ static int pdfi_create_DeviceGray(pdf_context *ctx, gs_color_space **ppcs) } pdfi_set_colour_callback(*ppcs, ctx, pdfi_cspace_free_callback); } else { - code = pdfi_gs_setgray(ctx, 1); + code = pdfi_gs_setgray(ctx, 0); } return code; } |