aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow/Block.java
diff options
context:
space:
mode:
authorJordan Naftolin <jordan@apache.org>2000-06-22 00:05:59 +0000
committerJordan Naftolin <jordan@apache.org>2000-06-22 00:05:59 +0000
commitae9a1100aa858a970fd2a11740343b9752252ed6 (patch)
tree28cd120c9d44f3cb9bcd974e132753a4bad95346 /src/org/apache/fop/fo/flow/Block.java
parentbb7ba9f51635eb33dea449425af5fa98f679e279 (diff)
downloadxmlgraphics-fop-ae9a1100aa858a970fd2a11740343b9752252ed6.tar.gz
xmlgraphics-fop-ae9a1100aa858a970fd2a11740343b9752252ed6.zip
checks for FObjMixed's id
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193426 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/flow/Block.java')
-rw-r--r--src/org/apache/fop/fo/flow/Block.java16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/org/apache/fop/fo/flow/Block.java b/src/org/apache/fop/fo/flow/Block.java
index 3adb50a0c..1e28d1684 100644
--- a/src/org/apache/fop/fo/flow/Block.java
+++ b/src/org/apache/fop/fo/flow/Block.java
@@ -71,7 +71,6 @@ public class Block extends FObjMixed {
return new Block.Maker();
}
- final static int ID_PADDING = 5000; // space to add before id y position
FontState fs;
int align;
int alignLast;
@@ -206,20 +205,9 @@ public class Block extends FObjMixed {
}
if ( marker==0 ) {
- // set up IDReferences
- IDReferences idReferences = area.getIDReferences();
+ // initialize id
String id = this.properties.get("id").getString();
- if ( id!=null && !id.equals("") ) {
- if ( idReferences.doesIDExist(id) ) {
- throw new FOPException("The id \""+id+"\" already exists in this document");
- }
- else {
- idReferences.createNewId(id);
- idReferences.removeFromIdValidationList(id);
- idReferences.setYPosition(id,area.getPage().getBody().getYPosition() - area.getAbsoluteHeight()+ID_PADDING);
- area.getPage().addToIDList(id);
- }
- }
+ area.getIDReferences().initializeID(id,area);
}
this.blockArea =