diff options
author | Keiron Liddle <keiron@apache.org> | 2002-05-29 13:53:41 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-05-29 13:53:41 +0000 |
commit | a89dc90a3be0f81705ac80125b91db43de1f450d (patch) | |
tree | 78e74670c5501d6fc842fc1c953f6e316035a9fa /src/org/apache/fop/svg | |
parent | 07b58c1b5e179a7e076a54b05cd03b0466ed57b4 (diff) | |
download | xmlgraphics-fop-a89dc90a3be0f81705ac80125b91db43de1f450d.tar.gz xmlgraphics-fop-a89dc90a3be0f81705ac80125b91db43de1f450d.zip |
fixed link problem, now handles external properly
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194843 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/svg')
-rw-r--r-- | src/org/apache/fop/svg/PDFANode.java | 1 | ||||
-rw-r--r-- | src/org/apache/fop/svg/PDFGraphics2D.java | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/org/apache/fop/svg/PDFANode.java b/src/org/apache/fop/svg/PDFANode.java index 3fd4be391..a4e28a88e 100644 --- a/src/org/apache/fop/svg/PDFANode.java +++ b/src/org/apache/fop/svg/PDFANode.java @@ -58,6 +58,7 @@ public class PDFANode extends CompositeGraphicsNode { int type = org.apache.fop.layout.LinkSet.EXTERNAL; Shape outline = getOutline(); if(destination.startsWith("#svgView(viewBox(")) { + type = org.apache.fop.layout.LinkSet.INTERNAL; String nums = destination.substring(18, destination.length() - 2); float x = 0; float y = 0; diff --git a/src/org/apache/fop/svg/PDFGraphics2D.java b/src/org/apache/fop/svg/PDFGraphics2D.java index 880c7ce4a..ed14b988e 100644 --- a/src/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/org/apache/fop/svg/PDFGraphics2D.java @@ -171,7 +171,7 @@ public class PDFGraphics2D extends AbstractGraphics2D { rect.y = rect.y * 1000; rect.height = -rect.height * 1000; rect.width = rect.width * 1000; - if(linkType == LinkSet.EXTERNAL) { + if(linkType != LinkSet.EXTERNAL) { String pdfdest = "/XYZ " + dest; currentAnnotList.addLink(pdfDoc.makeLinkCurrentPage(rect, pdfdest)); } else { |