pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1670753 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
Date Wed, 01 Apr 2015 18:59:07 GMT
Author: tilman
Date: Wed Apr  1 18:59:07 2015
New Revision: 1670753

URL: http://svn.apache.org/r1670753
Log:
PDFBOX-2741: fill all 4 array elements in initialization

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java?rev=1670753&r1=1670752&r2=1670753&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDSeparation.java
Wed Apr  1 18:59:07 2015
@@ -26,6 +26,7 @@ import org.apache.commons.logging.LogFac
 import org.apache.pdfbox.cos.COSArray;
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSName;
+import org.apache.pdfbox.cos.COSNull;
 import org.apache.pdfbox.pdmodel.common.function.PDFunction;
 
 /**
@@ -55,6 +56,9 @@ public class PDSeparation extends PDColo
         array = new COSArray();
         array.add( COSName.SEPARATION );
         array.add( COSName.getPDFName( "" ) );
+        // add some placeholder
+        array.add( COSNull.NULL );
+        array.add( COSNull.NULL );
     }
 
     /**



Mime
View raw message