changeset 36216:aa6d6e43792f

Code fix to support `ps-zebra-stripe-follow' funcionality enhancement. (doColumnZebra): Code fix.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 20 Feb 2001 10:42:14 +0000
parents f2ca7236963b
children f0b63361c3ab
files etc/ps-prin1.ps
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/etc/ps-prin1.ps	Tue Feb 20 10:41:10 2001 +0000
+++ b/etc/ps-prin1.ps	Tue Feb 20 10:42:14 2001 +0000
@@ -343,7 +343,7 @@
 /doColumnZebra{
   /lpc exch def
   gsave
-  ZebraFollow{
+  ZebraFollow 1 and 0 ne{
     /H ZebraHeight zebra-line ZebraHeight mod sub def
     /lpc lpc H sub def
     zebra-line double-zebra mod ZebraHeight lt
@@ -355,8 +355,8 @@
     /zebra-line zebra-line LinesPerColumn add def
   }if
   lpc dup double-zebra idiv{ZebraHeight doZebra 0 yiter rmoveto}repeat
-  double-zebra mod
-  dup 0 le{pop}{dup ZebraHeight gt{pop ZebraHeight}if doZebra}ifelse
+  double-zebra mod dup 0 le{pop}
+  {dup ZebraHeight gt ZebraFollow 2 and 0 ne or{pop ZebraHeight}if doZebra}ifelse
   grestore
 }def