pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1775328 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
Date Tue, 20 Dec 2016 17:33:45 GMT
Author: tilman
Date: Tue Dec 20 17:33:45 2016
New Revision: 1775328

URL: http://svn.apache.org/viewvc?rev=1775328&view=rev
Log:
PDFBOX-3638: draw line only if border color is set

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java?rev=1775328&r1=1775327&r2=1775328&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
Tue Dec 20 17:33:45 2016
@@ -228,7 +228,7 @@ class AppearanceGeneratorHelper
                 lineWidth = borderStyle.getWidth();
             }
 
-            if (lineWidth > 0)
+            if (lineWidth > 0 && borderColour != null)
             {
                 if (lineWidth != 1)
                 {



Mime
View raw message