From 160c3e76529e7d665e0899d50821140751faed7c Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Mon, 11 Feb 2008 18:36:14 +0000 Subject: [PATCH] Missing file from r620283 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620570 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/fo/expr/PropertyException.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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(); } -- 2.39.5