aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/Leader.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-01-17 22:02:03 +0000
committerGlen Mazza <gmazza@apache.org>2004-01-17 22:02:03 +0000
commit33220ae4076f8d330c6bfbf7e093d68512396dbf (patch)
treea24772a08001c243aa5a984fc1b024b5201ee44a /src/java/org/apache/fop/fo/flow/Leader.java
parentf7ca85ea98ed3f08122a1e4e5aa77d660821de59 (diff)
downloadxmlgraphics-fop-33220ae4076f8d330c6bfbf7e093d68512396dbf.tar.gz
xmlgraphics-fop-33220ae4076f8d330c6bfbf7e093d68512396dbf.zip
Bug 25873 (from Finn Bock): Minor code cleanup issues.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197214 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/Leader.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/Leader.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Leader.java b/src/java/org/apache/fop/fo/flow/Leader.java
index 55cb47fb6..bcb745399 100644
--- a/src/java/org/apache/fop/fo/flow/Leader.java
+++ b/src/java/org/apache/fop/fo/flow/Leader.java
@@ -62,7 +62,6 @@ import org.apache.fop.fo.properties.CommonBackground;
import org.apache.fop.fo.properties.CommonBorderAndPadding;
import org.apache.fop.fo.properties.CommonMarginInline;
import org.apache.fop.fo.properties.CommonRelativePosition;
-import org.apache.fop.fo.properties.FOPropertyMapping;
import org.apache.fop.fonts.Font;
/**
@@ -163,9 +162,8 @@ public class Leader extends FObjMixed {
}
- public int getLength(String prop, int dim) {
+ public int getLength(int propId, int dim) {
int length;
- int propId = FOPropertyMapping.getPropertyId(prop);
Length maxlength = propertyList.get(propId).getLength();
if (maxlength instanceof PercentLength) {
length = (int)(((PercentLength)maxlength).value()