]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Mikko Honkala's fix to allow JDK 1.1 users to compile and use FOP.
authorSteve Coffman <gears@apache.org>
Mon, 4 Dec 2000 20:10:33 +0000 (20:10 +0000)
committerSteve Coffman <gears@apache.org>
Mon, 4 Dec 2000 20:10:33 +0000 (20:10 +0000)
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
src/org/apache/fop/fo/NumberProperty.java
src/org/apache/fop/fo/flow/TableRow.java

index cb247709e168f74f0917920883f10a27be27cbb0..5870dc19e674dcd36151ad943e0001147b3074f9 100644 (file)
@@ -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;
   }
 
index 9c42ae02df7b2747faee08a9a7bdd4fe2a601374..04b38d90e15db3f2ba93289f531f1f28ca2f0bcc 100644 (file)
@@ -72,7 +72,7 @@ public class NumberProperty extends Property {
     }
   }
 
-  private final Number number;
+  private Number number;
 
   public NumberProperty(Number number) {
     this.number = number;
index 408582c4b7fe407c1e0a46f6e6f59e3480b45431..fdc571c3dd60bc83fded073d3a3422b04db32a9e 100644 (file)
@@ -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;