Author: adelmelle
Date: Mon Feb 11 10:36:14 2008
New Revision: 620570

URL: http://svn.apache.org/viewvc?rev=620570&view=rev
Log:
Missing file from r620283

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PropertyException.java

Modified: 
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PropertyException.java
URL: 
http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PropertyException.java?rev=620570&r1=620569&r2=620570&view=diff
==============================================================================
--- 
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PropertyException.java 
(original)
+++ 
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PropertyException.java 
Mon Feb 11 10:36:14 2008
@@ -36,11 +36,22 @@
     }
 
     /**
+     * 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();
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to