Переглянути джерело

Applied Kelly's patch to fix problem where id's where being setup twice for

table row going over the page

Submitted by:	Kelly Campbell


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193868 13f79535-47bb-0310-9956-ffa450edef68
pull/32/head
Keiron Liddle 23 роки тому
джерело
коміт
6896e9b59d

+ 3
- 1
src/org/apache/fop/datatypes/IDReferences.java Переглянути файл

@@ -289,7 +289,9 @@ public class IDReferences {
public void setInternalGoToPageReference(String id, String pageReference)
{
IDNode node=(IDNode)idReferences.get(id);
node.setInternalLinkGoToPageReference(pageReference);
if (node != null) {
node.setInternalLinkGoToPageReference(pageReference);
}
}



+ 5
- 6
src/org/apache/fop/fo/flow/TableRow.java Переглянути файл

@@ -337,6 +337,8 @@ public class TableRow extends FObj {
}

public Status layout(Area area) throws FOPException {
boolean configID = false;

if (this.marker == BREAK_AFTER) {
return new Status(Status.OK);
}
@@ -350,6 +352,7 @@ public class TableRow extends FObj {
}

area.getIDReferences().createID(id);
configID = true;

this.marker = 0;
}
@@ -360,7 +363,7 @@ public class TableRow extends FObj {
area.increaseHeight(spaceBefore);
}

if (marker == 0) {
if (marker == 0 && configID) {
// configure id
area.getIDReferences().configureID(id, area);
}
@@ -536,7 +539,6 @@ public class TableRow extends FObj {
area.start();
}


// test to see if some cells are not
// completely laid out.
// Hani Elabed 11/22/2000
@@ -549,9 +551,6 @@ public class TableRow extends FObj {
}
}




// replaced by Hani Elabed 11/27/2000
//return new Status(Status.OK);

@@ -580,7 +579,7 @@ public class TableRow extends FObj {
// area.increaseHeight(areaContainer.getHeight());
area.removeChild(areaContainer);
this.resetMarker();
cells = null;
this.removeID(area.getIDReferences());
marker = 0;
}
}

Завантаження…
Відмінити
Зберегти