diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2023-03-16 15:56:19 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2023-03-16 15:56:19 +0000 |
commit | 5c2e7698fa7e3ef97e41290548ec860a4c0ab46d (patch) | |
tree | 8ac966dc61b55bc0a443bb461045ace3d60bc5b4 | |
parent | 346f12459aa67cdb5ff9e267c2c8cccc17f4a376 (diff) | |
download | ghostpdl-5c2e7698fa7e3ef97e41290548ec860a4c0ab46d.tar.gz |
Idiom Recognition - fix bug in PPI_CUils
Bug #706483 "PPI_CUtils Idiom detection causing incorrect output"
The Idiom Recognition substitutes a function for the basic PPI 'Force
Gray' function which additionally turns off JPEG image passthrough while
this feature is in force. This was for bug #702964.
Unfortunately the substituted function was leaving the return values
from .putdeviceparamsonly on the stack, leading to incorrect output.
Just pop the returned values, we don't want them.
-rw-r--r-- | Resource/IdiomSet/PPI_CUtils | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Resource/IdiomSet/PPI_CUtils b/Resource/IdiomSet/PPI_CUtils index 7e6ecb23e..12dbd96a8 100644 --- a/Resource/IdiomSet/PPI_CUtils +++ b/Resource/IdiomSet/PPI_CUtils @@ -15,7 +15,7 @@ currentuserparams /IdiomRecognition get << /cuForceGray [ {/_cuForceGray exch cuPut} bind -{dup //true eq {currentdevice //null //false mark /PassThroughJPEGImages //false .putdeviceparamsonly}if /_cuForceGray exch cuPut} bind +{dup //true eq {currentdevice //null //false mark /PassThroughJPEGImages //false .putdeviceparamsonly}if pop pop /_cuForceGray exch cuPut} bind ] >> |