pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1784052 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java
Date Wed, 22 Feb 2017 18:25:48 GMT
Author: tilman
Date: Wed Feb 22 18:25:48 2017
New Revision: 1784052

URL: http://svn.apache.org/viewvc?rev=1784052&view=rev
Log:
PDFBOX-3641: call the only conversion method that is used later to avoid slowness and huge
memory footprint on windows

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java?rev=1784052&r1=1784051&r2=1784052&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDICCBased.java
Wed Feb 22 18:25:48 2017
@@ -142,10 +142,7 @@ public final class PDICCBased extends PD
                 // do things that trigger a ProfileDataException
                 // or CMMException due to invalid profiles, see PDFBOX-1295 and PDFBOX-1740
                 // or ArrayIndexOutOfBoundsException, see PDFBOX-3610
-                awtColorSpace.fromRGB(new float[3]);
                 awtColorSpace.toRGB(new float[awtColorSpace.getNumComponents()]);
-                awtColorSpace.fromCIEXYZ(new float[3]);
-                awtColorSpace.toCIEXYZ(new float[awtColorSpace.getNumComponents()]);
                 // this one triggers an exception for PDFBOX-3549 with KCMS
                 new Color(awtColorSpace, new float[getNumberOfComponents()], 1f);
             }



Mime
View raw message