From 4ef0e71e114f39c9a47af707045d3329265394f6 Mon Sep 17 00:00:00 2001 From: Joerg Pietschmann Date: Tue, 17 Sep 2002 20:21:32 +0000 Subject: [PATCH] Fixed problem with empty text buffer. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195208 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/FObjMixed.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/apache/fop/fo/FObjMixed.java b/src/org/apache/fop/fo/FObjMixed.java index 2d2a55f11..4b1d0df9c 100644 --- a/src/org/apache/fop/fo/FObjMixed.java +++ b/src/org/apache/fop/fo/FObjMixed.java @@ -41,7 +41,7 @@ public abstract class FObjMixed extends FObj { } private final void finalizeText() { - if (textBuffer!=null) { + if (textBuffer != null && textBuffer.length() > 0) { FOText ft = new FOText(textBuffer, this); ft.setTextState(textState); super.addChild(ft); -- 2.39.5