From f44cc4954e2471f67987b277e1c7eeaf1b64d3c6 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 17 Feb 2005 13:40:42 +0000 Subject: [PATCH] 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 --- .../fop/fo/properties/CommonBorderPaddingBackground.java | 1 + test/layoutengine/testcases/border3.xml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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 @@ - - + + -- 2.39.5