You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ad...@apache.org on 2006/08/17 11:50:55 UTC
svn commit: r432195 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java
Author: adelmelle
Date: Thu Aug 17 02:50:54 2006
New Revision: 432195
URL: http://svn.apache.org/viewvc?rev=432195&view=rev
Log:
A nit: use PropertyInfo methods instead of accessing the PropertyList
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java?rev=432195&r1=432194&r2=432195&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PPColWidthFunction.java Thu Aug 17 02:50:54 2006
@@ -51,15 +51,14 @@
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 "
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org