pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1796891 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
Date Tue, 30 May 2017 16:31:13 GMT
Author: tilman
Date: Tue May 30 16:31:13 2017
New Revision: 1796891

URL: http://svn.apache.org/viewvc?rev=1796891&view=rev
Log:
PDFBOX-3813: adjust minimum dash line width once again to avoid JVM crash

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java?rev=1796891&r1=1796890&r2=1796891&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/rendering/PageDrawer.java Tue
May 30 16:31:13 2017
@@ -653,10 +653,11 @@ public class PageDrawer extends PDFGraph
             // apply the CTM
             for (int i = 0; i < dashArray.length; ++i)
             {
-                // minimum line dash width avoids JVM crash, see PDFBOX-2373, PDFBOX-2929,
PDFBOX-3204
+                // minimum line dash width avoids JVM crash,
+                // see PDFBOX-2373, PDFBOX-2929, PDFBOX-3204, PDFBOX-3813
                 // also avoid 0 in array like "[ 0 1000 ] 0 d", see PDFBOX-3724
                 float w = transformWidth(dashArray[i]);
-                dashArray[i] = Math.max(w, 0.035f);
+                dashArray[i] = Math.max(w, 0.062f);
             }
             phaseStart = (int)transformWidth(phaseStart);
 



Mime
View raw message