aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-02-04 12:58:27 +0000
committerFinn Bock <bckfnn@apache.org>2004-02-04 12:58:27 +0000
commit3f9f0e401f48836bd2d76b835ad2ff15473c8f36 (patch)
treee47eb1c56a6a487c817743b46212a34a5eda03a6 /src/java/org/apache/fop
parent95a786d221b4781042dcf5fcc81adfcfef111f9b (diff)
downloadxmlgraphics-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.java4
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);
}