pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1576436 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
Date Tue, 11 Mar 2014 17:46:33 GMT
Author: tilman
Date: Tue Mar 11 17:46:33 2014
New Revision: 1576436

URL: http://svn.apache.org/r1576436
Log:
PDFBOX-1946: set default value (missed two lines in last commit)

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java?rev=1576436&r1=1576435&r2=1576436&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFStreamEngine.java Tue Mar
11 17:46:33 2014
@@ -355,6 +355,8 @@ public class PDFStreamEngine
             // so lets make it a little bit smaller.
             spaceWidthText *= .80f;
         }
+        else 
+            spaceWidthText = 1.0f; // if could not find font, use a generic value
 
         float maxVerticalDisplacementText = 0;
 



Mime
View raw message