diff options
author | Glen Mazza <gmazza@apache.org> | 2004-01-17 22:02:03 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-01-17 22:02:03 +0000 |
commit | 33220ae4076f8d330c6bfbf7e093d68512396dbf (patch) | |
tree | a24772a08001c243aa5a984fc1b024b5201ee44a /src/java/org/apache/fop/fo/flow/Leader.java | |
parent | f7ca85ea98ed3f08122a1e4e5aa77d660821de59 (diff) | |
download | xmlgraphics-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.java | 4 |
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() |