From 5c2e7698fa7e3ef97e41290548ec860a4c0ab46d Mon Sep 17 00:00:00 2001 From: Ken Sharp Date: Thu, 16 Mar 2023 15:56:19 +0000 Subject: 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. --- Resource/IdiomSet/PPI_CUtils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ] >> -- cgit v1.2.1