diff options
author | Keiron Liddle <keiron@apache.org> | 2000-07-11 01:06:29 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2000-07-11 01:06:29 +0000 |
commit | b563a42d583b3e52541525f5e4e63bf2f4df35cb (patch) | |
tree | 8ae570a8796f5d15077f40136baf3c3d00b0fdeb /src/org | |
parent | 9376e11f33831016cc91743a46dc2ab803a984e0 (diff) | |
download | xmlgraphics-fop-b563a42d583b3e52541525f5e4e63bf2f4df35cb.tar.gz xmlgraphics-fop-b563a42d583b3e52541525f5e4e63bf2f4df35cb.zip |
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
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/apache/fop/pdf/PDFDocument.java | 4 |
1 files 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 +} |