aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorarved <arved@unknown>2000-03-10 02:57:22 +0000
committerarved <arved@unknown>2000-03-10 02:57:22 +0000
commitf45ef88c582beaeba9e5822f34488b869609d344 (patch)
tree8aecafb726a7a0acab41015ea826f6a6522c5bb4 /src
parentcee7d113d8b05327542342f874c023dc700ef122 (diff)
downloadxmlgraphics-fop-f45ef88c582beaeba9e5822f34488b869609d344.tar.gz
xmlgraphics-fop-f45ef88c582beaeba9e5822f34488b869609d344.zip
align() returns int; low impact change of signature
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/layout/LineArea.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/apache/fop/layout/LineArea.java b/src/org/apache/fop/layout/LineArea.java
index 092685a4a..02a7ff76a 100644
--- a/src/org/apache/fop/layout/LineArea.java
+++ b/src/org/apache/fop/layout/LineArea.java
@@ -381,8 +381,8 @@ public class LineArea extends Area {
pendingAreas = new Vector();
}
- public void align(int type) {
- int padding;
+ public int align(int type) {
+ int padding = 0;
switch (type) {
case TextAlign.START: // left
@@ -424,6 +424,7 @@ public class LineArea extends Area {
space2.setSize(i + padding);
}
}
+ return padding;
}
public void changeColor(float red, float green, float blue) {
@@ -479,4 +480,5 @@ public class LineArea extends Area {
public void setPendingWidth(int width) {
pendingWidth = width;
}
+
}