]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla #44497:
authorJeremias Maerki <jeremias@apache.org>
Wed, 27 Feb 2008 13:00:54 +0000 (13:00 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 27 Feb 2008 13:00:54 +0000 (13:00 +0000)
AFP Renderer: Bugfix for broken reference orientation on absolutely positioned block-containers.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@631575 13f79535-47bb-0310-9956-ffa450edef68

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

index b09cade25533176aebe3d9e1646b23fae2bfd4cb..20587349375145b762e251209010fb89566642a7 100644 (file)
@@ -532,10 +532,7 @@ public class AFPRenderer extends AbstractPathOrientedRenderer {
             //Set up coordinate system for content rectangle
             AffineTransform contentTransform = ctm.toAffineTransform();
             //concatenateTransformationMatrix(mptToPt(contentTransform));
-            ptSrc = new Point(0, 0);
-            ptDst = contentTransform.transform(ptSrc, null);
-            contentRect = new Rectangle2D.Double(ptDst.getX(), ptDst.getY(),
-                    1000 * width, 1000 * height);
+            contentRect = new Rectangle2D.Double(0, 0, 1000 * width, 1000 * height);
             pushViewPortPos(new ViewPortPos(contentRect, new CTM(contentTransform)));
             
             currentIPPosition = 0;
@@ -588,7 +585,6 @@ public class AFPRenderer extends AbstractPathOrientedRenderer {
 
             currentBPPosition += (int)(bv.getAllocBPD());
         }
-        // currentFontName = saveFontName;
     }
 
     /** {@inheritDoc} */