aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf/PDFDocument.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2010-08-18 12:56:51 +0000
committerJeremias Maerki <jeremias@apache.org>2010-08-18 12:56:51 +0000
commit80b40cf372060cf16008325cb0d86bd7e2a03a9c (patch)
tree27c1ce379079036a3b282e5af30f00621c02aa68 /src/java/org/apache/fop/pdf/PDFDocument.java
parent081bc07f4f269e73a59be22a2087801755e124cb (diff)
downloadxmlgraphics-fop-80b40cf372060cf16008325cb0d86bd7e2a03a9c.tar.gz
xmlgraphics-fop-80b40cf372060cf16008325cb0d86bd7e2a03a9c.zip
Bugfix for potential java.lang.IndexOutOfBoundsException in PDFDocument.outputTrailer().
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@986650 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFDocument.java')
-rw-r--r--src/java/org/apache/fop/pdf/PDFDocument.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFDocument.java b/src/java/org/apache/fop/pdf/PDFDocument.java
index ae160ef78..a17c8c4df 100644
--- a/src/java/org/apache/fop/pdf/PDFDocument.java
+++ b/src/java/org/apache/fop/pdf/PDFDocument.java
@@ -1017,9 +1017,7 @@ public class PDFDocument {
output(stream);
for (int count = 0; count < this.trailerObjects.size(); count++) {
PDFObject o = (PDFObject)this.trailerObjects.get(count);
- this.location.set(
- o.getObjectNumber() - 1,
- new Integer(this.position));
+ setLocation(o.getObjectNumber() - 1, this.position);
this.position += o.output(stream);
}
/* output the xref table and increment the character position