diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-06-10 11:34:21 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-06-10 11:34:21 +0000 |
commit | d1497b4846c39888829965767f2d1885cf2b3b88 (patch) | |
tree | 96a9cc3a17cf1d4dfd0e0b218124b19a30c8bc01 /src/java/org | |
parent | 75a69c1a13d227f3e0ef3256258774dc662e9e13 (diff) | |
download | xmlgraphics-fop-d1497b4846c39888829965767f2d1885cf2b3b88.tar.gz xmlgraphics-fop-d1497b4846c39888829965767f2d1885cf2b3b88.zip |
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
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |