You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ad...@apache.org on 2008/02/11 19:36:35 UTC

svn commit: r620570 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/expr/PropertyException.java

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: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org