From: Andreas L. Delmelle Date: Mon, 11 Feb 2008 18:36:14 +0000 (+0000) Subject: Missing file from r620283 X-Git-Tag: fop-0_95beta~81 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=160c3e76529e7d665e0899d50821140751faed7c;p=xmlgraphics-fop.git Missing file from r620283 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620570 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/expr/PropertyException.java b/src/java/org/apache/fop/fo/expr/PropertyException.java index d9a0b2edd..16055a738 100644 --- a/src/java/org/apache/fop/fo/expr/PropertyException.java +++ b/src/java/org/apache/fop/fo/expr/PropertyException.java @@ -35,12 +35,23 @@ public class PropertyException extends FOPException { super(detail); } + /** + * Constructor + * @param the Exception causing this PropertyException + */ + public PropertyException(Exception cause) { + super(cause); + if (cause instanceof PropertyException) { + this.propertyName = ((PropertyException)cause).propertyName; + } + } + /** * Sets the property context information. * @param propInfo the property info instance */ public void setPropertyInfo(PropertyInfo propInfo) { - setLocator(propInfo.getFO().getLocator()); + setLocator(propInfo.getPropertyList().getFObj().getLocator()); propertyName = propInfo.getPropertyMaker().getName(); }