You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by bc...@apache.org on 2004/02/04 13:58:27 UTC
cvs commit: xml-fop/src/java/org/apache/fop/fo/pagination RegionBody.java
bckfnn 2004/02/04 04:58:27
Modified: src/java/org/apache/fop/fo/pagination RegionBody.java
Log:
Support for "margin" shorthands for margin-[left,right].
Revision Changes Path
1.16 +2 -2 xml-fop/src/java/org/apache/fop/fo/pagination/RegionBody.java
Index: RegionBody.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/pagination/RegionBody.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- RegionBody.java 2 Feb 2004 16:08:26 -0000 1.15
+++ RegionBody.java 4 Feb 2004 12:58:27 -0000 1.16
@@ -113,9 +113,9 @@
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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org