aboutsummaryrefslogtreecommitdiffstats
path: root/src/org
diff options
context:
space:
mode:
authorarved <arved@unknown>2001-05-01 01:02:13 +0000
committerarved <arved@unknown>2001-05-01 01:02:13 +0000
commit576b4cec9f6a26efdce5a0724f0ab14995e4a10d (patch)
treef29ca42f8ae0ff4ed7dffc47914eedc55dc3d700 /src/org
parentb4e0a8a470702b4637bbd49afdd4219fa6872b80 (diff)
downloadxmlgraphics-fop-576b4cec9f6a26efdce5a0724f0ab14995e4a10d.tar.gz
xmlgraphics-fop-576b4cec9f6a26efdce5a0724f0ab14995e4a10d.zip
K. Liddle: vertical align amount modified
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194231 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org')
-rw-r--r--src/org/apache/fop/layout/LineArea.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/apache/fop/layout/LineArea.java b/src/org/apache/fop/layout/LineArea.java
index c08f4edc2..bbad26e06 100644
--- a/src/org/apache/fop/layout/LineArea.java
+++ b/src/org/apache/fop/layout/LineArea.java
@@ -665,10 +665,10 @@ public class LineArea extends Area {
int vert = ia.getVerticalAlign();
if(vert == VerticalAlign.SUPER) {
int fh = fontState.getAscender();
- ia.setYOffset((int)(placementOffset - (fh / 3.0)));
+ ia.setYOffset((int)(placementOffset - (2 * fh / 3.0)));
} else if(vert == VerticalAlign.SUB) {
int fh = fontState.getAscender();
- ia.setYOffset((int)(placementOffset + (fh / 3.0)));
+ ia.setYOffset((int)(placementOffset + (2 * fh / 3.0)));
}
} else {
}