diff options
author | Finn Bock <bckfnn@apache.org> | 2004-02-04 12:58:27 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-02-04 12:58:27 +0000 |
commit | 3f9f0e401f48836bd2d76b835ad2ff15473c8f36 (patch) | |
tree | e47eb1c56a6a487c817743b46212a34a5eda03a6 /src/java/org/apache/fop | |
parent | 95a786d221b4781042dcf5fcc81adfcfef111f9b (diff) | |
download | xmlgraphics-fop-3f9f0e401f48836bd2d76b835ad2ff15473c8f36.tar.gz xmlgraphics-fop-3f9f0e401f48836bd2d76b835ad2ff15473c8f36.zip |
Support for "margin" shorthands for margin-[left,right].
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197326 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/RegionBody.java | 4 |
1 files changed, 2 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 1a55e7838..1763a4aff 100644 --- a/src/java/org/apache/fop/fo/pagination/RegionBody.java +++ b/src/java/org/apache/fop/fo/pagination/RegionBody.java @@ -113,9 +113,9 @@ public class RegionBody extends Region { String sPropName = "margin-" + parent.propertyList.wmRelToAbs(reldir); int propId = FOPropertyMapping.getPropertyId(sPropName); - Property prop = propertyList.getExplicitBaseProp(propId); + Property prop = propertyList.getExplicitOrShorthand(propId); if (prop == null) { - prop = propertyList.getExplicitBaseProp(relPropId); + prop = propertyList.getExplicitOrShorthand(relPropId); } return ((prop != null) ? prop.getLength().getValue() : 0); } |