diff options
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/AddLMVisitor.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/AddLMVisitor.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java b/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java index 852f198c0..a34f912de 100644 --- a/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java +++ b/src/java/org/apache/fop/layoutmgr/AddLMVisitor.java @@ -179,11 +179,9 @@ public class AddLMVisitor implements FOTreeVisitor { return saveLMList; } - public void serveFOText(FOText node) { - if (node.length > 0) { - LayoutManager lm = new TextLayoutManager(node.ca, node.length, node.textInfo); - lm.setFObj(node); - currentLMList.add(lm); + public void serveFOText(FOText foText) { + if (foText.ca.length - foText.start > 0) { + currentLMList.add(new TextLayoutManager(foText)); } } |