]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Missing file from r620283
authorAndreas L. Delmelle <adelmelle@apache.org>
Mon, 11 Feb 2008 18:36:14 +0000 (18:36 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Mon, 11 Feb 2008 18:36:14 +0000 (18:36 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@620570 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/expr/PropertyException.java

index d9a0b2eddf60b317534dcf1b3c7e8b52e0465a48..16055a738231fe1013ee8d0dd9172054a4f739e7 100644 (file)
@@ -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();
     }