From 7cc222e4fc6b0d36c82279cbbae207cf4536fb01 Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Mon, 4 Dec 2000 20:10:33 +0000 Subject: [PATCH] Mikko Honkala's fix to allow JDK 1.1 users to compile and use FOP. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193857 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/datatypes/Length.java | 3 +-- src/org/apache/fop/fo/NumberProperty.java | 2 +- src/org/apache/fop/fo/flow/TableRow.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/org/apache/fop/datatypes/Length.java b/src/org/apache/fop/datatypes/Length.java index cb247709e..5870dc19e 100644 --- a/src/org/apache/fop/datatypes/Length.java +++ b/src/org/apache/fop/datatypes/Length.java @@ -57,10 +57,9 @@ import org.apache.fop.messaging.MessageHandler; * a length quantity in XSL */ public class Length { - public static final Length AUTO ; + public static final Length AUTO = new Length(0); static { - AUTO = new Length(0); AUTO.bAuto = true; } diff --git a/src/org/apache/fop/fo/NumberProperty.java b/src/org/apache/fop/fo/NumberProperty.java index 9c42ae02d..04b38d90e 100644 --- a/src/org/apache/fop/fo/NumberProperty.java +++ b/src/org/apache/fop/fo/NumberProperty.java @@ -72,7 +72,7 @@ public class NumberProperty extends Property { } } - private final Number number; + private Number number; public NumberProperty(Number number) { this.number = number; diff --git a/src/org/apache/fop/fo/flow/TableRow.java b/src/org/apache/fop/fo/flow/TableRow.java index 408582c4b..fdc571c3d 100644 --- a/src/org/apache/fop/fo/flow/TableRow.java +++ b/src/org/apache/fop/fo/flow/TableRow.java @@ -347,7 +347,7 @@ public class TableRow extends FObj { CellState state = new CellState( i, false, cumulativeWidth ); // add the state of a cell. - cells.add( i, state ); + cells.insertElementAt( state,i); // cumulative width, i.e start offset of cell // also known as widthOfCellSoFar... cumulativeWidth += width; -- 2.39.5