aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-05-18 09:00:45 +0000
committerJeremias Maerki <jeremias@apache.org>2005-05-18 09:00:45 +0000
commit5bf570e04f3c7c043346fc4d316af0f05e033c38 (patch)
treeef9b168ba8065241920bcfe459f499d8dd2ddfb7 /src/java/org/apache
parent095b06900c630603280a68b259119a8ae4c93406 (diff)
downloadxmlgraphics-fop-5bf570e04f3c7c043346fc4d316af0f05e033c38.tar.gz
xmlgraphics-fop-5bf570e04f3c7c043346fc4d316af0f05e033c38.zip
Bugfix: Footnote appears now even if inline part is empty. (see footnotes2.xml in testcases)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198648 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/layoutmgr/FootnoteLayoutManager.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/FootnoteLayoutManager.java b/src/java/org/apache/fop/layoutmgr/FootnoteLayoutManager.java
index 378560537..0697f9803 100644
--- a/src/java/org/apache/fop/layoutmgr/FootnoteLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/FootnoteLayoutManager.java
@@ -69,6 +69,11 @@ public class FootnoteLayoutManager extends AbstractLayoutManager
returnedList.addAll(partialList);
}
}
+ if (returnedList.size() == 0) {
+ //Inline part of the footnote is empty. Need to send back an auxiliary
+ //zero-width, zero-height inline box so the footnote gets painted.
+ returnedList.add(new KnuthInlineBox(0, 0, 0, 0, null, true));
+ }
setFinished(true);
addAnchor(returnedList);