From: Jeremias Maerki Date: Thu, 17 Feb 2005 13:40:42 +0000 (+0000) Subject: border-style "hidden" also forces border-width to 0. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f44cc4954e2471f67987b277e1c7eeaf1b64d3c6;p=xmlgraphics-fop.git border-style "hidden" also forces border-width to 0. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198440 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java index dbb090fe8..b9848ab0a 100755 --- a/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java +++ b/src/java/org/apache/fop/fo/properties/CommonBorderPaddingBackground.java @@ -208,6 +208,7 @@ public class CommonBorderPaddingBackground implements Cloneable { public int getBorderWidth(int side, boolean bDiscard) { if ((borderInfo[side] == null) || (borderInfo[side].mStyle == Constants.EN_NONE) + || (borderInfo[side].mStyle == Constants.EN_HIDDEN) || (bDiscard && borderInfo[side].mWidth.isDiscard())) { return 0; } else { diff --git a/test/layoutengine/testcases/border3.xml b/test/layoutengine/testcases/border3.xml index 484504fda..d16ea1308 100644 --- a/test/layoutengine/testcases/border3.xml +++ b/test/layoutengine/testcases/border3.xml @@ -131,7 +131,7 @@ - - + +