You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2018/03/17 09:12:43 UTC
svn commit: r1827067 -
/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java
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;