]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix: Footnote appears now even if inline part is empty. (see footnotes2.xml in...
authorJeremias Maerki <jeremias@apache.org>
Wed, 18 May 2005 09:00:45 +0000 (09:00 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 18 May 2005 09:00:45 +0000 (09:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198648 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/FootnoteLayoutManager.java

index 378560537a9ac6d4e48f884591c3c042f38fa433..0697f980300e39d58c4f13ca6b10bb0f1cf5b678 100644 (file)
@@ -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);