You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/06/10 13:34:21 UTC
cvs commit: xml-fop/src/java/org/apache/fop/layoutmgr LeafNodeLayoutManager.java
jeremias 2005/06/10 04:34:21
Modified: src/java/org/apache/fop/layoutmgr LeafNodeLayoutManager.java
Log:
Create LinkedList only if it's needed.
Revision Changes Path
1.18 +1 -1 xml-fop/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java
Index: LeafNodeLayoutManager.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/layoutmgr/LeafNodeLayoutManager.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- LeafNodeLayoutManager.java 8 Jun 2005 22:06:32 -0000 1.17
+++ LeafNodeLayoutManager.java 10 Jun 2005 11:34:21 -0000 1.18
@@ -246,7 +246,6 @@
int alignment) {
MinOptMax ipd;
curArea = get(context);
- LinkedList returnList = new LinkedList();
if (curArea == null) {
setFinished(true);
@@ -277,6 +276,7 @@
// 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));
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org