pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1767734 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java
Date Wed, 02 Nov 2016 16:57:29 GMT
Author: tilman
Date: Wed Nov  2 16:57:29 2016
New Revision: 1767734

URL: http://svn.apache.org/viewvc?rev=1767734&view=rev
Log:
PDFBOX-3549: restore the test call deleted in PDFBOX-3531 because we need both

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java?rev=1767734&r1=1767733&r2=1767734&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java
Wed Nov  2 16:57:29 2016
@@ -16,6 +16,7 @@
  */
 package org.apache.pdfbox.pdmodel.graphics.color;
 
+import java.awt.Color;
 import java.awt.color.ColorSpace;
 import java.util.Arrays;
 import org.apache.commons.logging.Log;
@@ -139,9 +140,11 @@ public final class PDICCBased extends PD
             }
             initialColor = new PDColor(initial, this);
 
-            // create a color in order to trigger a ProfileDataException
+            // do things that trigger a ProfileDataException
             // or CMMException due to invalid profiles, see PDFBOX-1295 and PDFBOX-1740
             awtColorSpace.fromRGB(new float[3]);
+            // this one triggers an exception for PDFBOX-3549 with KCMS
+            new Color(awtColorSpace, new float[getNumberOfComponents()], 1f);
         }
         catch (RuntimeException e)
         {



Mime
View raw message