aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/expr
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2003-12-27 22:00:38 +0000
committerGlen Mazza <gmazza@apache.org>2003-12-27 22:00:38 +0000
commit75c5a4c1cdb5eea469d82660a31d7fdb90a4333d (patch)
tree321aa7918afc71707d481ba1bebbd499c97eff20 /src/java/org/apache/fop/fo/expr
parent3218d18b86a969583ac9ba7aaf830b90d62e6e3b (diff)
downloadxmlgraphics-fop-75c5a4c1cdb5eea469d82660a31d7fdb90a4333d.tar.gz
xmlgraphics-fop-75c5a4c1cdb5eea469d82660a31d7fdb90a4333d.zip
*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
Diffstat (limited to 'src/java/org/apache/fop/fo/expr')
-rw-r--r--src/java/org/apache/fop/fo/expr/FromParentFunction.java4
1 files changed, 3 insertions, 1 deletions
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));
}
}