diff options
author | Glen Mazza <gmazza@apache.org> | 2004-01-02 23:53:09 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-01-02 23:53:09 +0000 |
commit | 0222590e84a2b3b16baaeae6d6b68ee0a4f68881 (patch) | |
tree | 361326f6241278c3cebc0e1af73b29a789e71918 /src/java/org/apache/fop/fo | |
parent | 2185a69b4b30b183b550853c3b2ba59ebfc7f39a (diff) | |
download | xmlgraphics-fop-0222590e84a2b3b16baaeae6d6b68ee0a4f68881.tar.gz xmlgraphics-fop-0222590e84a2b3b16baaeae6d6b68ee0a4f68881.zip |
FOPropertyMapping.GetPropertyId() modified to also be able to return
(base + compound) ID value for a "base.compound" string; more String->Int
conversions in Leader.java.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197097 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/Leader.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/flow/Leader.java b/src/java/org/apache/fop/fo/flow/Leader.java index 8711f8ee2..3bb07c739 100644 --- a/src/java/org/apache/fop/fo/flow/Leader.java +++ b/src/java/org/apache/fop/fo/flow/Leader.java @@ -62,7 +62,7 @@ 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.fo.properties.FOPropertyMapping; import org.apache.fop.fo.properties.LeaderPattern; import org.apache.fop.fonts.Font; @@ -166,9 +166,8 @@ public class Leader extends FObjMixed { public int getLength(String prop, int dim) { int length; -// int propId = FOPropertyMapping.getPropertyId(prop); -// System.out.println("prop/propID = " + prop + " " + propId); - Length maxlength = propertyList.get(prop).getLength(); + int propId = FOPropertyMapping.getPropertyId(prop); + Length maxlength = propertyList.get(propId).getLength(); if (maxlength instanceof PercentLength) { length = (int)(((PercentLength)maxlength).value() * dim); |