diff options
author | Jordan Naftolin <jordan@apache.org> | 2000-06-29 16:34:33 +0000 |
---|---|---|
committer | Jordan Naftolin <jordan@apache.org> | 2000-06-29 16:34:33 +0000 |
commit | 141bf4a14acc71eafd49961f2d470c990407aced (patch) | |
tree | 9b8828b2a7e8d15fef83b3663ef3c9818361b6ce | |
parent | cf01f4cf9a3b0d74fc4d69f8840958d4313ed4b1 (diff) | |
download | xmlgraphics-fop-141bf4a14acc71eafd49961f2d470c990407aced.tar.gz xmlgraphics-fop-141bf4a14acc71eafd49961f2d470c990407aced.zip |
fixes small bug with the link rectangle placement when the link
is using text-indent
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193450 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/org/apache/fop/layout/LineArea.java | 8 | ||||
-rw-r--r-- | src/org/apache/fop/layout/LinkSet.java | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/org/apache/fop/layout/LineArea.java b/src/org/apache/fop/layout/LineArea.java index 6540ed2c6..edfbee2d1 100644 --- a/src/org/apache/fop/layout/LineArea.java +++ b/src/org/apache/fop/layout/LineArea.java @@ -224,8 +224,7 @@ public class LineArea extends Area { InlineArea inlineArea = (InlineArea) e.nextElement(); if (ls != null) { Rectangle lr = - new Rectangle(startIndent + - finalWidth, + new Rectangle(finalWidth, 0, inlineArea.getContentWidth(), fontState.getFontSize()); @@ -252,8 +251,7 @@ public class LineArea extends Area { addChild(ia); if (ls != null) { Rectangle lr = - new Rectangle(startIndent + - finalWidth, + new Rectangle(finalWidth, 0, ia.getContentWidth(), fontState.getFontSize()); @@ -360,7 +358,7 @@ public class LineArea extends Area { if (ls != null) { Rectangle lr = - new Rectangle(startIndent + finalWidth + spaceWidth + embeddedLinkStart, + new Rectangle(finalWidth + spaceWidth + embeddedLinkStart, spaceWidth, pia.getContentWidth(), fontState.getFontSize()); diff --git a/src/org/apache/fop/layout/LinkSet.java b/src/org/apache/fop/layout/LinkSet.java index 67155d0f0..3277899a0 100644 --- a/src/org/apache/fop/layout/LinkSet.java +++ b/src/org/apache/fop/layout/LinkSet.java @@ -135,7 +135,7 @@ public class LinkSet { Enumeration re = rects.elements(); while (re.hasMoreElements()) { LinkedRectangle r = (LinkedRectangle)re.nextElement(); - r.setX(r.getX() + ac.getXPosition() + area.getTableCellXOffset() - ba.startIndent); + r.setX(r.getX() + ac.getXPosition() + area.getTableCellXOffset()); r.setY( ac.getYPosition() - height +(maxY-r.getY()) - ba.getHalfLeading()); } } |