diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-05-18 09:00:45 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-05-18 09:00:45 +0000 |
commit | 5bf570e04f3c7c043346fc4d316af0f05e033c38 (patch) | |
tree | ef9b168ba8065241920bcfe459f499d8dd2ddfb7 /src/java/org/apache | |
parent | 095b06900c630603280a68b259119a8ae4c93406 (diff) | |
download | xmlgraphics-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.java | 5 |
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); |