aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;