diff options
author | Steve Coffman <gears@apache.org> | 2000-10-12 19:47:13 +0000 |
---|---|---|
committer | Steve Coffman <gears@apache.org> | 2000-10-12 19:47:13 +0000 |
commit | daad55edcbbaa81d20a9b582e8ac1b831712ca00 (patch) | |
tree | 6340e7811e4f6616124605c368bd6242764859b1 /src/org/apache/fop/image | |
parent | bf6b6a3c21762e4f0b8d81a585df685bf3b18e1d (diff) | |
download | xmlgraphics-fop-daad55edcbbaa81d20a9b582e8ac1b831712ca00.tar.gz xmlgraphics-fop-daad55edcbbaa81d20a9b582e8ac1b831712ca00.zip |
This applies Ross Golder's unicode patch. It also adds Mark Reeves
comments. It does *NOT* fix the properties.xml alignment bug yet.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193722 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/image')
-rw-r--r-- | src/org/apache/fop/image/ImageArea.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/apache/fop/image/ImageArea.java b/src/org/apache/fop/image/ImageArea.java index 9ff0698e2..8442723c7 100644 --- a/src/org/apache/fop/image/ImageArea.java +++ b/src/org/apache/fop/image/ImageArea.java @@ -72,16 +72,16 @@ public class ImageArea extends Area { this.image = img; switch (align) { - case 1: + case 1: // should be TextAlign.START xOffset = startIndent; break; - case 2: + case 2: //should be TextAlign.END if (endIndent == 0) endIndent = AllocationWidth; xOffset = (endIndent - width); break; - case 3: - case 4: + case 3: //should be TextAlign.CENTER + case 4: //should be TextAlign.JUSTIFY if (endIndent == 0) endIndent = AllocationWidth; xOffset = startIndent + ((endIndent - startIndent) - width)/2; |