summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlgs/lib/caption.ps
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlgs/lib/caption.ps')
-rw-r--r--Master/tlpkg/tlgs/lib/caption.ps5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/tlpkg/tlgs/lib/caption.ps b/Master/tlpkg/tlgs/lib/caption.ps
index fbbd10dbe85..14b310d570f 100644
--- a/Master/tlpkg/tlgs/lib/caption.ps
+++ b/Master/tlpkg/tlgs/lib/caption.ps
@@ -48,7 +48,10 @@ grestore
grestore
} bind def
<< /EndPage [
- /showcaption load /exec load
+ %%
+ %% Only print the caption if 'reason' is not 2 (device deactivation)
+ %%
+ /dup load /exec load 2 /ne load /exec load [ /showcaption load /exec load ] cvx /if load /exec load
currentpagedevice /EndPage get /exec load
] cvx
>> setpagedevice