diff options
author | Keiron Liddle <keiron@apache.org> | 2002-11-03 16:24:22 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-11-03 16:24:22 +0000 |
commit | 0dafe4daaa3857d147ab4bfa41f54bb817213356 (patch) | |
tree | 9a557cc19b0816f005d0bb05947d6ab6681d590c /src/org/apache/fop/fo/flow | |
parent | 2efc29b2fe29ea1ea0e0b425bddae586c4fe4692 (diff) | |
download | xmlgraphics-fop-0dafe4daaa3857d147ab4bfa41f54bb817213356.tar.gz xmlgraphics-fop-0dafe4daaa3857d147ab4bfa41f54bb817213356.zip |
fixed link/resolving problem
made sure area tree is serializable
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195405 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/flow')
-rw-r--r-- | src/org/apache/fop/fo/flow/BasicLink.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/apache/fop/fo/flow/BasicLink.java b/src/org/apache/fop/fo/flow/BasicLink.java index c692629ad..bd1b72088 100644 --- a/src/org/apache/fop/fo/flow/BasicLink.java +++ b/src/org/apache/fop/fo/flow/BasicLink.java @@ -63,7 +63,7 @@ public class BasicLink extends Inline { } else { PageViewport page = parentLM.resolveRefID(link); if (page != null) { - area.addTrait(Trait.INTERNAL_LINK, page); + area.addTrait(Trait.INTERNAL_LINK, page.getKey()); } else { LinkResolver res = new LinkResolver(link, area); parentLM.addUnresolvedArea(link, res); @@ -148,7 +148,7 @@ public class BasicLink extends Inline { resolved = true; if (idRef.equals(id) && pages != null) { PageViewport page = (PageViewport)pages.get(0); - area.addTrait(Trait.INTERNAL_LINK, page); + area.addTrait(Trait.INTERNAL_LINK, page.getKey()); } } } |