From: Jeremias Maerki Date: Wed, 15 Mar 2006 09:28:49 +0000 (+0000) Subject: Bugfix: Fixed an NPE that was thrown when a table was used inside a footnote-body. X-Git-Tag: fop-0_92-beta~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7c906c3babdad29fc57a90e1680a8e10e2336c85;p=xmlgraphics-fop.git Bugfix: Fixed an NPE that was thrown when a table was used inside a footnote-body. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386015 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java index c8ba02f92..b94b2623c 100644 --- a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java @@ -242,6 +242,7 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager { // element represents a line with footnote citations bFootnotesPresent = true; LayoutContext footnoteContext = new LayoutContext(context); + footnoteContext.setStackLimit(context.getStackLimit()); footnoteContext.setRefIPD(getCurrentPV() .getRegionReference(Constants.FO_REGION_BODY).getIPD()); LinkedList footnoteBodyLMs = ((KnuthBlockBox) element).getFootnoteBodyLMs(); diff --git a/status.xml b/status.xml index 0596f50c5..579094916 100644 --- a/status.xml +++ b/status.xml @@ -27,6 +27,9 @@ + + Bugfix: Fixed an NPE that was thrown when a table was used inside a footnote-body. + Bugfix: Fixed a problem with certain TrueType fonts which are missing the "PCLT" table, where a baseline-shift="sub" had no effect due to a missing x-height value. diff --git a/test/layoutengine/standard-testcases/table_in_footnote.xml b/test/layoutengine/standard-testcases/table_in_footnote.xml new file mode 100644 index 000000000..0c187e4fa --- /dev/null +++ b/test/layoutengine/standard-testcases/table_in_footnote.xml @@ -0,0 +1,64 @@ + + + + + +

+ This test is a regression check for an NPE that occured when a table is placed in a footnote-body. +

+
+ + + + + + + + + + + A table within a + + footnote + + + + + + + + + One cell shouldn't be too hard to render. + + + + + + + + + shouldn't be a problem. + + + + + + + + + +