pbwest 2002/09/26 07:32:09
Modified: src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FOTree.java
Log:
Fixed first index in initialisations.
Revision Changes Path
No revision
No revision
1.1.2.12 +5 -5 xml-fop/src/org/apache/fop/fo/Attic/FOTree.java
Index: FOTree.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FOTree.java,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -r1.1.2.11 -r1.1.2.12
--- FOTree.java 18 Sep 2002 15:42:12 -0000 1.1.2.11
+++ FOTree.java 26 Sep 2002 14:32:09 -0000 1.1.2.12
@@ -101,7 +101,7 @@
// Initialise the propertyStacks
propertyStacks = new LinkedList[PropNames.LAST_PROPERTY_INDEX + 1];
PropertyValue prop;
- for (int i = 0; i <= PropNames.LAST_PROPERTY_INDEX; i++)
+ for (int i = 1; i <= PropNames.LAST_PROPERTY_INDEX; i++)
propertyStacks[i] = new LinkedList();
// Initialize the FontSize first. Any lengths defined in ems must
// be resolved relative to the current font size. This may happen
@@ -114,8 +114,8 @@
(new PropertyTriplet(PropNames.FONT_SIZE, prop, prop));
- for (int i = 0; i <= PropNames.LAST_PROPERTY_INDEX; i++) {
- String cname = "";
+ for (int i = 1; i <= PropNames.LAST_PROPERTY_INDEX; i++) {
+ System.out.println("Set initial value: " + i);
if (i == PropNames.FONT_SIZE) continue;
// Set up the initial values for each property
prop = PropertyConsts.getInitialValue(i);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]