diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2008-02-11 18:36:14 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2008-02-11 18:36:14 +0000 |
commit | 160c3e76529e7d665e0899d50821140751faed7c (patch) | |
tree | d02a0957a36e5cd9002c1d59eed686ac69096fb9 | |
parent | 22d05fbd32743107f8fc4fbbda30b48df4cd2347 (diff) | |
download | xmlgraphics-fop-160c3e76529e7d665e0899d50821140751faed7c.tar.gz xmlgraphics-fop-160c3e76529e7d665e0899d50821140751faed7c.zip |
Missing file from r620283
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620570 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/fo/expr/PropertyException.java | 13 |
1 files changed, 12 insertions, 1 deletions
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 @@ -36,11 +36,22 @@ public class PropertyException extends FOPException { } /** + * 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(); } |