diff options
author | Glen Mazza <gmazza@apache.org> | 2004-01-05 01:31:09 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-01-05 01:31:09 +0000 |
commit | 352273a94c46788b4a88c88d9444f1ddf6ddf36d (patch) | |
tree | f02803636fc6b423bf7d74e531ccd88be513fd6e /src/java/org/apache/fop/fo/pagination | |
parent | 9715ae547a6da42aaf42ccbdd9a4cf2917c6e7ba (diff) | |
download | xmlgraphics-fop-352273a94c46788b4a88c88d9444f1ddf6ddf36d.tar.gz xmlgraphics-fop-352273a94c46788b4a88c88d9444f1ddf6ddf36d.zip |
More String->Int Conversions.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197115 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/RegionBody.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/RegionBody.java b/src/java/org/apache/fop/fo/pagination/RegionBody.java index 0ead97981..38b0f8cd0 100644 --- a/src/java/org/apache/fop/fo/pagination/RegionBody.java +++ b/src/java/org/apache/fop/fo/pagination/RegionBody.java @@ -60,6 +60,7 @@ import org.apache.fop.fo.FObj; import org.apache.fop.fo.Property; import org.apache.fop.fo.PropertyList; import org.apache.fop.fo.properties.CommonMarginBlock; +import org.apache.fop.fo.properties.FOPropertyMapping; import org.apache.fop.fo.properties.WritingMode; /** @@ -112,9 +113,11 @@ public class RegionBody extends Region { FObj parent = (FObj) getParent(); String sPropName = "margin-" + parent.propertyList.wmRelToAbs(reldir); - Property prop = propertyList.getExplicitBaseProp(sPropName); + int propId = FOPropertyMapping.getPropertyId(sPropName); + Property prop = propertyList.getExplicitBaseProp(propId); if (prop == null) { - prop = propertyList.getExplicitBaseProp(sRelPropName); + propId = FOPropertyMapping.getPropertyId(sRelPropName); + prop = propertyList.getExplicitBaseProp(propId); } return ((prop != null) ? prop.getLength().getValue() : 0); } |