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 2016/12/20 17:33:28 UTC
svn commit: r1775327 -
/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
Author: tilman
Date: Tue Dec 20 17:33:28 2016
New Revision: 1775327
URL: http://svn.apache.org/viewvc?rev=1775327&view=rev
Log:
PDFBOX-3638: draw line only if border color is set
Modified:
pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java?rev=1775327&r1=1775326&r2=1775327&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/AppearanceGeneratorHelper.java Tue Dec 20 17:33:28 2016
@@ -230,7 +230,7 @@ class AppearanceGeneratorHelper
lineWidth = borderStyle.getWidth();
}
- if (lineWidth > 0)
+ if (lineWidth > 0 && borderColour != null)
{
if (lineWidth != 1)
{