xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr FootnoteLayoutManager.java
Date Wed, 18 May 2005 09:00:45 GMT
jeremias    2005/05/18 02:00:45

  Modified:    src/java/org/apache/fop/layoutmgr FootnoteLayoutManager.java
  Log:
  Bugfix: Footnote appears now even if inline part is empty. (see footnotes2.xml in testcases)
  
  Revision  Changes    Path
  1.2       +6 -1      xml-fop/src/java/org/apache/fop/layoutmgr/FootnoteLayoutManager.java
  
  Index: FootnoteLayoutManager.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/FootnoteLayoutManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FootnoteLayoutManager.java	17 May 2005 14:38:16 -0000	1.1
  +++ FootnoteLayoutManager.java	18 May 2005 09:00:45 -0000	1.2
  @@ -69,6 +69,11 @@
                   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);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message