aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Coffman <gears@apache.org>2000-12-04 20:10:33 +0000
committerSteve Coffman <gears@apache.org>2000-12-04 20:10:33 +0000
commit7cc222e4fc6b0d36c82279cbbae207cf4536fb01 (patch)
treed01af51a0e19ba8e48e1e0b6e1bbda76d4fe1a4b
parent68d9473ba8b5673a05ca055101c6024c31d93469 (diff)
downloadxmlgraphics-fop-7cc222e4fc6b0d36c82279cbbae207cf4536fb01.tar.gz
xmlgraphics-fop-7cc222e4fc6b0d36c82279cbbae207cf4536fb01.zip
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
-rw-r--r--src/org/apache/fop/datatypes/Length.java3
-rw-r--r--src/org/apache/fop/fo/NumberProperty.java2
-rw-r--r--src/org/apache/fop/fo/flow/TableRow.java2
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;