]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
creates a function for each pair of colours, rather than missing the last one
authorKeiron Liddle <keiron@apache.org>
Tue, 11 Jul 2000 01:06:29 +0000 (01:06 +0000)
committerKeiron Liddle <keiron@apache.org>
Tue, 11 Jul 2000 01:06:29 +0000 (01:06 +0000)
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

index bf577d966e0e10e748905e7d3960fafc57d8f05d..44091602cbaaf15cba6e56d1edebd5647efc6597 100644 (file)
@@ -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
+}