aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/render
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2001-01-30 04:50:26 +0000
committerKeiron Liddle <keiron@apache.org>2001-01-30 04:50:26 +0000
commit4c36038f8c07cc6de1673c0ff3d055fc2431893e (patch)
tree635772a1f41ebd408c0b4bb31d7facf5f297c045 /src/org/apache/fop/render
parenta37f507512c3bfd2fb48904df4b18b6119006eed (diff)
downloadxmlgraphics-fop-4c36038f8c07cc6de1673c0ff3d055fc2431893e.tar.gz
xmlgraphics-fop-4c36038f8c07cc6de1673c0ff3d055fc2431893e.zip
places svg inline
first part in moving towards proper inline areas git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194004 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render')
-rw-r--r--src/org/apache/fop/render/pdf/PDFRenderer.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/org/apache/fop/render/pdf/PDFRenderer.java b/src/org/apache/fop/render/pdf/PDFRenderer.java
index 0f29c65e6..d15d68058 100644
--- a/src/org/apache/fop/render/pdf/PDFRenderer.java
+++ b/src/org/apache/fop/render/pdf/PDFRenderer.java
@@ -516,7 +516,7 @@ public class PDFRenderer implements Renderer {
currentStream.add("Q\n");
currentStream.add("BT\n");
this.currentXPosition += area.getEffectiveWidth();
- this.currentYPosition -= area.getEffectiveHeight();
+// this.currentYPosition -= area.getEffectiveHeight();
}
/**
@@ -669,7 +669,12 @@ public class PDFRenderer implements Renderer {
Enumeration e = area.getChildren().elements();
while (e.hasMoreElements()) {
Box b = (Box) e.nextElement();
- this.currentYPosition = ry - area.getPlacementOffset();
+ if(b instanceof InlineArea) {
+ InlineArea ia = (InlineArea)b;
+ this.currentYPosition = ry - ia.getYOffset();
+ } else {
+ this.currentYPosition = ry - area.getPlacementOffset();
+ }
b.render(this);
}