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 gm...@apache.org on 2004/01/05 23:13:19 UTC
cvs commit: xml-fop/src/java/org/apache/fop/fo Property.java
gmazza 2004/01/05 14:13:19
Modified: src/java/org/apache/fop/fo Property.java
Log:
Switch from strings->ints in Property.setSubprop() (from Finn Bock).
Revision Changes Path
1.10 +4 -3 xml-fop/src/java/org/apache/fop/fo/Property.java
Index: Property.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/Property.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Property.java 5 Jan 2004 00:44:59 -0000 1.9
+++ Property.java 5 Jan 2004 22:13:19 -0000 1.10
@@ -192,7 +192,8 @@
if (spMaker != null) {
Property p = spMaker.make(propertyList, value, fo);
if (p != null) {
- return setSubprop(baseProp, partName, p);
+ int partId = FOPropertyMapping.getSubPropertyId(partName);
+ return setSubprop(baseProp, partId, p);
}
} else {
//getLogger().error("compound property component "
@@ -210,12 +211,12 @@
* compound properties.
* @param baseProp The Property object representing the compound property,
* such as SpaceProperty.
- * @param partName The name of the component whose value is specified.
+ * @param partId The ID of the component whose value is specified.
* @param subProp A Property object holding the specified value of the
* component to be set.
* @return The modified compound property object.
*/
- protected Property setSubprop(Property baseProp, String partName,
+ protected Property setSubprop(Property baseProp, int partId,
Property subProp) {
return baseProp;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org