From a9c5d04c9282bce85c7e28c7192c4e3e866dfe4d Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Thu, 17 Aug 2006 09:50:54 +0000 Subject: 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 --- src/java/org/apache/fop/fo/expr/PPColWidthFunction.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/java/org/apache/fop/fo/expr') 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 " -- cgit v1.2.3