From d1497b4846c39888829965767f2d1885cf2b3b88 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 10 Jun 2005 11:34:21 +0000 Subject: [PATCH] Create LinkedList only if it's needed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198738 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java b/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java index 22e3a0723..7149a3450 100644 --- a/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java @@ -246,7 +246,6 @@ public abstract class LeafNodeLayoutManager extends AbstractLayoutManager int alignment) { MinOptMax ipd; curArea = get(context); - LinkedList returnList = new LinkedList(); if (curArea == null) { setFinished(true); @@ -277,6 +276,7 @@ public abstract class LeafNodeLayoutManager extends AbstractLayoutManager // node is a fo:ExternalGraphic, fo:InstreamForeignObject, // fo:PageNumber or fo:PageNumberCitation + LinkedList returnList = new LinkedList(); returnList.add(new KnuthInlineBox(areaInfo.ipdArea.opt, areaInfo.lead, areaInfo.total, areaInfo.middle, new LeafPosition(this, 0), false)); -- 2.39.5