From 3ec512a82e22dab1b9b844d6f4284bd8072025d0 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Mon, 5 Jan 2004 22:13:19 +0000 Subject: [PATCH] Switch from strings->ints in Property.setSubprop() (from Finn Bock). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197142 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/Property.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/fop/fo/Property.java b/src/java/org/apache/fop/fo/Property.java index ed01900c3..0fd2ba732 100644 --- a/src/java/org/apache/fop/fo/Property.java +++ b/src/java/org/apache/fop/fo/Property.java @@ -192,7 +192,8 @@ public class Property { 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 @@ public class Property { * 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; } -- 2.39.5