From: Finn Bock Date: Wed, 4 Feb 2004 12:58:27 +0000 (+0000) Subject: Support for "margin" shorthands for margin-[left,right]. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~862 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3f9f0e401f48836bd2d76b835ad2ff15473c8f36;p=xmlgraphics-fop.git 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 --- 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); }