From 75c5a4c1cdb5eea469d82660a31d7fdb90a4333d Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Sat, 27 Dec 2003 22:00:38 +0000 Subject: *Partial* conversion of PropertyList.get(String propName) to new PropertyList.get(int propId) method. This method will remain overloaded until all calls converted to int constants. Work based on Finn Bock's patch. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197059 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/expr/FromParentFunction.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/java/org/apache/fop/fo/expr') diff --git a/src/java/org/apache/fop/fo/expr/FromParentFunction.java b/src/java/org/apache/fop/fo/expr/FromParentFunction.java index 2cc3228b3..2cd77d576 100644 --- a/src/java/org/apache/fop/fo/expr/FromParentFunction.java +++ b/src/java/org/apache/fop/fo/expr/FromParentFunction.java @@ -51,6 +51,8 @@ package org.apache.fop.fo.expr; import org.apache.fop.fo.Property; +import org.apache.fop.fo.properties.FOPropertyMapping; + /** * Class modelling the from-parent Property Value function. See Sec. 5.10.4 of @@ -86,7 +88,7 @@ public class FromParentFunction extends FunctionBase { * non-inherited properties too. Perhaps the result is different for * a property line line-height which "inherits specified"??? */ - return pInfo.getPropertyList().getFromParent(propName); + return pInfo.getPropertyList().getFromParent(FOPropertyMapping.getPropertyId(propName)); } } -- cgit v1.2.3