pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1827067 - /pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
Date Sat, 17 Mar 2018 09:12:43 GMT
Author: tilman
Date: Sat Mar 17 09:12:43 2018
New Revision: 1827067

URL: http://svn.apache.org/viewvc?rev=1827067&view=rev
Log:
PDFBOX-4071: Sonar fix

Modified:
    pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java

Modified: pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java?rev=1827067&r1=1827066&r2=1827067&view=diff
==============================================================================
--- pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
(original)
+++ pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
Sat Mar 17 09:12:43 2018
@@ -1197,9 +1197,12 @@ public class PDFDebugger extends JFrame
 
         // trigger premature initializations for more accurate rendering benchmarks
         // See discussion in PDFBOX-3988
-        PDFont font = PDType1Font.COURIER;
-        PDDeviceCMYK.INSTANCE.toRGB(new float[]{0,0,0,0});
-        PDDeviceRGB.INSTANCE.toRGB(new float[]{0,0,0});
+        if (PDType1Font.COURIER.isStandard14())
+        {
+            // Yes this is always true
+            PDDeviceCMYK.INSTANCE.toRGB(new float[] { 0, 0, 0, 0} );
+            PDDeviceRGB.INSTANCE.toRGB(new float[] { 0, 0, 0 } );
+        }
 
         // open file, if any
         String filename = null;



Mime
View raw message