From b563a42d583b3e52541525f5e4e63bf2f4df35cb Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Tue, 11 Jul 2000 01:06:29 +0000 Subject: [PATCH] creates a function for each pair of colours, rather than missing the last one git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193469 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/pdf/PDFDocument.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/pdf/PDFDocument.java b/src/org/apache/fop/pdf/PDFDocument.java index bf577d966..44091602c 100644 --- a/src/org/apache/fop/pdf/PDFDocument.java +++ b/src/org/apache/fop/pdf/PDFDocument.java @@ -638,7 +638,7 @@ public class PDFDocument { Vector theFunctions = new Vector(); int currentPosition; - int lastPosition = theColors.size()-2; + int lastPosition = theColors.size()-1; //if 5 elements, the penultimate element is 3. @@ -982,4 +982,4 @@ public class PDFDocument { public void setIDReferences(IDReferences idReferences){ this.idReferences= idReferences; } -} \ No newline at end of file +} -- 2.39.5