]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
SGK/AHS: inlining of images
authorarved <arved@unknown>
Sun, 10 Jun 2001 17:04:36 +0000 (17:04 +0000)
committerarved <arved@unknown>
Sun, 10 Jun 2001 17:04:36 +0000 (17:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194286 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/pdf/PDFRenderer.java

index fb4a84ed3663d93de43b87752e58ddf77332a59b..648b880ad379ad99f36c1ef7dc546e45e9a21e69 100644 (file)
@@ -231,7 +231,7 @@ public class PDFRenderer extends PrintRenderer {
      */
     public void renderImageArea(ImageArea area) {
         // adapted from contribution by BoBoGi
-        int x = this.currentAreaContainerXPosition + area.getXOffset();
+        int x = this.currentXPosition + area.getXOffset();
         int y = this.currentYPosition;
         int w = area.getContentWidth();
         int h = area.getHeight();
@@ -260,6 +260,7 @@ public class PDFRenderer extends PrintRenderer {
                               (((float)(y - h)) / 1000f) + " cm\n" + "/Im" +
                               xObjectNum + " Do\nQ\nBT\n");
         }
+       this.currentXPosition += area.getContentWidth();
     }
 
     /** render a foreign object area */