aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-09-22 15:29:47 +0000
committerJeremias Maerki <jeremias@apache.org>2005-09-22 15:29:47 +0000
commit49cc7b8b39cfa8b75133f32868c03c5e3ab63bfa (patch)
tree7ce3b8aa4114efaa26b08b431bf7d7af7a79334c /src/java/org/apache/fop/fo
parent1654c995b25b0cc66cf4f51f10335ca733d4f8de (diff)
downloadxmlgraphics-fop-49cc7b8b39cfa8b75133f32868c03c5e3ab63bfa.tar.gz
xmlgraphics-fop-49cc7b8b39cfa8b75133f32868c03c5e3ab63bfa.zip
Java 1.3 compatibility.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@290962 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r--src/java/org/apache/fop/fo/flow/Table.java4
-rw-r--r--src/java/org/apache/fop/fo/flow/TableBody.java14
-rw-r--r--src/java/org/apache/fop/fo/flow/TableRow.java4
3 files changed, 17 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Table.java b/src/java/org/apache/fop/fo/flow/Table.java
index f65a68f58..9373e6070 100644
--- a/src/java/org/apache/fop/fo/flow/Table.java
+++ b/src/java/org/apache/fop/fo/flow/Table.java
@@ -266,7 +266,9 @@ public class Table extends TableFObj {
}
}
//flag column indices used by this column
- usedColumnIndices.set(colNumber - 1, colNumber - 1 + colRepeat);
+ for (int i = colNumber - 1; i < colNumber - 1 + colRepeat; i++) {
+ usedColumnIndices.set(i);
+ }
//set index for the next column to use
while( usedColumnIndices.get(columnIndex - 1) ) {
columnIndex++;
diff --git a/src/java/org/apache/fop/fo/flow/TableBody.java b/src/java/org/apache/fop/fo/flow/TableBody.java
index 8d8cd53a2..bed35017c 100644
--- a/src/java/org/apache/fop/fo/flow/TableBody.java
+++ b/src/java/org/apache/fop/fo/flow/TableBody.java
@@ -211,7 +211,9 @@ public class TableBody extends TableFObj {
}
}
}
- usedColumnIndices.set(startIndex, endIndex);
+ for (int i = startIndex; i < endIndex; i++) {
+ usedColumnIndices.set(i);
+ }
setNextColumnIndex();
super.addChildNode(cell);
if (cell.endsRow()) {
@@ -337,7 +339,9 @@ public class TableBody extends TableFObj {
*/
public void resetColumnIndex() {
columnIndex = 1;
- usedColumnIndices.clear();
+ for (int i = 0; i < usedColumnIndices.size(); i++) {
+ usedColumnIndices.clear(i);
+ }
PendingSpan pSpan;
for (int i = pendingSpans.size(); --i >= 0;) {
pSpan = (PendingSpan) pendingSpans.get(i);
@@ -347,7 +351,11 @@ public class TableBody extends TableFObj {
pendingSpans.set(i, null);
}
}
- usedColumnIndices.set(i, pendingSpans.get(i) != null);
+ if (pendingSpans.get(i) != null) {
+ usedColumnIndices.set(i);
+ } else {
+ usedColumnIndices.clear(i);
+ }
}
if (!firstRow) {
setNextColumnIndex();
diff --git a/src/java/org/apache/fop/fo/flow/TableRow.java b/src/java/org/apache/fop/fo/flow/TableRow.java
index 3081e1632..2179b3f3e 100644
--- a/src/java/org/apache/fop/fo/flow/TableRow.java
+++ b/src/java/org/apache/fop/fo/flow/TableRow.java
@@ -189,7 +189,9 @@ public class TableRow extends TableFObj {
}
}
}
- usedColumnIndices.set(startIndex, endIndex);
+ for (int i = startIndex; i < endIndex; i++) {
+ usedColumnIndices.set(i);
+ }
//update columnIndex for the next cell
while (usedColumnIndices.get(columnIndex - 1)) {
columnIndex++;