pietsch     2003/01/11 10:43:04

  Modified:    src/org/apache/fop/layout Tag: fop-0_20_2-maintain
                        LineArea.java
               src/org/apache/fop/render Tag: fop-0_20_2-maintain
                        AbstractRenderer.java
  Log:
  Added diagnostic for probably dropped text due to unhandled pending inline areas.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.53.2.12 +3 -2      xml-fop/src/org/apache/fop/layout/Attic/LineArea.java
  
  Index: LineArea.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/layout/Attic/LineArea.java,v
  retrieving revision 1.53.2.11
  retrieving revision 1.53.2.12
  diff -u -r1.53.2.11 -r1.53.2.12
  --- LineArea.java     19 Nov 2002 01:04:08 -0000      1.53.2.11
  +++ LineArea.java     11 Jan 2003 18:43:04 -0000      1.53.2.12
  @@ -92,7 +92,8 @@
       protected ArrayList pendingAreas = new ArrayList();
   
       /* the width of the pendingAreas */
  -    protected int pendingWidth = 0;
  +    /* public for problem check in AbstractRenderer */
  +    public int pendingWidth = 0;
   
       /* text-decoration of the previous text */
       protected boolean prevUlState = false;
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.7   +6 -1      xml-fop/src/org/apache/fop/render/AbstractRenderer.java
  
  Index: AbstractRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/AbstractRenderer.java,v
  retrieving revision 1.4.2.6
  retrieving revision 1.4.2.7
  diff -u -r1.4.2.6 -r1.4.2.7
  --- AbstractRenderer.java     8 Nov 2002 10:25:27 -0000       1.4.2.6
  +++ AbstractRenderer.java     11 Jan 2003 18:43:04 -0000      1.4.2.7
  @@ -451,6 +451,11 @@
        * @param area area to render
        */
       public void renderLineArea(LineArea area) {
  +        if (area.pendingWidth>0) {
  +            log.error("Areas pending, text probably lost. Check Page " +
  +                      area.getPage().getFormattedNumber() +
  +                      " and following page.");
  +        }
           int rx = this.currentAreaContainerXPosition + area.getStartIndent();
           int ry = this.currentYPosition;
           int w = area.getContentWidth();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to