aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-02-15 16:38:14 +0000
committerJeremias Maerki <jeremias@apache.org>2009-02-15 16:38:14 +0000
commit61664b34926101049b5ae1842972deddefe99440 (patch)
tree17dc7837deb248340d3194acff7d470bd94370e7 /src/java
parent48d7f1d6b55aaed921093dc6872d0c9982aa37ea (diff)
downloadxmlgraphics-fop-61664b34926101049b5ae1842972deddefe99440.tar.gz
xmlgraphics-fop-61664b34926101049b5ae1842972deddefe99440.zip
Fixed IllegalArgumentException (no object number assigned) for this makeLink method. It makes no sense to add this to the trailer objects AFAICS. This particular method is only used by PDFGraphics2D's makeLink() method (SVG's #svgView(viewBox()) functionality). The positioning of the viewbox is still wrong, though. It must have been broken at some point.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@744690 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/pdf/PDFFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFFactory.java b/src/java/org/apache/fop/pdf/PDFFactory.java
index b820e12fe..0a4516ce6 100644
--- a/src/java/org/apache/fop/pdf/PDFFactory.java
+++ b/src/java/org/apache/fop/pdf/PDFFactory.java
@@ -955,7 +955,7 @@ public class PDFFactory {
PDFGoTo gt = new PDFGoTo(page);
gt.setDestination(dest);
- getDocument().addTrailerObject(gt);
+ getDocument().registerObject(gt);
PDFInternalLink internalLink = new PDFInternalLink(gt.referencePDF());
link.setAction(internalLink);