From b6efc76bb1812ca1fc4e172a231cd3b6bd73cbd2 Mon Sep 17 00:00:00 2001 From: Joerg Pietschmann Date: Sat, 11 Jan 2003 18:43:04 +0000 Subject: [PATCH] Added diagnostic for probably dropped text due to unhandled pending inline areas. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195842 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/layout/LineArea.java | 3 ++- src/org/apache/fop/render/AbstractRenderer.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/org/apache/fop/layout/LineArea.java b/src/org/apache/fop/layout/LineArea.java index 50c18e43b..328102f59 100644 --- a/src/org/apache/fop/layout/LineArea.java +++ b/src/org/apache/fop/layout/LineArea.java @@ -92,7 +92,8 @@ public class LineArea extends Area { 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; diff --git a/src/org/apache/fop/render/AbstractRenderer.java b/src/org/apache/fop/render/AbstractRenderer.java index 430ea0330..0ac5f75a3 100644 --- a/src/org/apache/fop/render/AbstractRenderer.java +++ b/src/org/apache/fop/render/AbstractRenderer.java @@ -451,6 +451,11 @@ public abstract class AbstractRenderer implements Renderer { * @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(); -- 2.39.5