aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/expr
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2006-08-17 09:50:54 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2006-08-17 09:50:54 +0000
commita9c5d04c9282bce85c7e28c7192c4e3e866dfe4d (patch)
tree0b0472f6cb78964cc61fe9d2a69c5ba40ee60258 /src/java/org/apache/fop/fo/expr
parentd8585973eca339b3e6556e9e0372ec03b699474a (diff)
downloadxmlgraphics-fop-a9c5d04c9282bce85c7e28c7192c4e3e866dfe4d.tar.gz
xmlgraphics-fop-a9c5d04c9282bce85c7e28c7192c4e3e866dfe4d.zip
A nit: use PropertyInfo methods instead of accessing the PropertyList
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@432195 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/PPColWidthFunction.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java b/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java
index af485d284..a88f2837d 100644
--- a/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java
+++ b/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java
@@ -51,15 +51,14 @@ public class PPColWidthFunction extends FunctionBase {
Number d = args[0].getNumber();
if (d == null) {
throw new PropertyException("Non numeric operand to "
- + "proportional-column-width function");
+ + "proportional-column-width() function.");
}
- if (!"fo:table-column".equals(
- pInfo.getPropertyList().getFObj().getName())) {
- throw new PropertyException("proportional-column-width function "
- + "may only be used on table-column FO");
+ if (!"fo:table-column".equals(pInfo.getFO().getName())) {
+ throw new PropertyException("proportional-column-width() function "
+ + "may only be used on fo:table-column.");
}
- Table t = (Table) pInfo.getPropertyList().getParentFObj();
+ Table t = (Table) pInfo.getFO().getParent();
if (t.isAutoLayout()) {
throw new PropertyException("proportional-column-width() function "
+ "may only be used when fo:table has "