From: Peter Herweg Date: Sun, 15 Jan 2006 17:34:33 +0000 (+0000) Subject: support for background-color at fo:table X-Git-Tag: fop-0_92-beta~207 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cbdd6cb8f0eb28813bd04bf892609003448e31cc;p=xmlgraphics-fop.git support for background-color at fo:table git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@369235 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java index c82d31dc2..90d1cac21 100644 --- a/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java +++ b/src/java/org/apache/fop/render/rtf/TableAttributesConverter.java @@ -129,12 +129,24 @@ public class TableAttributesConverter { if (fobj.getParent() instanceof TableRow) { TableRow parentRow=(TableRow)fobj.getParent(); brd = parentRow.getCommonBorderPaddingBackground(); + color = brd.backgroundColor; } else if (fobj.getParent() instanceof TableHeader) { TableHeader parentHeader=(TableHeader)fobj.getParent(); brd = parentHeader.getCommonBorderPaddingBackground(); + color = brd.backgroundColor; } - color = brd.backgroundColor; + if (color == null + && fobj.getParent()!=null + && fobj.getParent().getParent()!=null + && fobj.getParent().getParent().getParent() instanceof Table) { + + Table table = (Table)fobj.getParent().getParent().getParent(); + brd = table.getCommonBorderPaddingBackground(); + color = brd.backgroundColor; + } + + } if ((color != null) && (color.getAlpha() != 0