]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Order important for setting uri otherwise value gets clobbered.
authorAdrian Cumiskey <acumiskey@apache.org>
Wed, 3 Sep 2008 11:58:53 +0000 (11:58 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Wed, 3 Sep 2008 11:58:53 +0000 (11:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@691584 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/afp/AFPAbstractImageFactory.java

index 2b91c4ca4cb536bd78a65a44a7c9c65a476d15af..565732b069225190280fd9e5573e18616dcf1c9a 100644 (file)
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-/* $Id$ */
+/* $Id$ */
 
 package org.apache.fop.render.afp;
 
@@ -53,11 +53,11 @@ public abstract class AFPAbstractImageFactory {
      */
     public AFPDataObjectInfo create(AFPImageInfo afpImageInfo) throws IOException {
         AFPDataObjectInfo dataObjectInfo = createDataObjectInfo();
-        dataObjectInfo.setUri(afpImageInfo.uri);
 
         // set resource information
         AFPResourceInfo resourceInfo
         = foreignAttributeReader.getResourceInfo(afpImageInfo.foreignAttributes);
+        resourceInfo.setUri(afpImageInfo.uri);
         dataObjectInfo.setResourceInfo(resourceInfo);
 
         // set object area