diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2009-04-28 15:34:47 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2009-04-28 15:34:47 +0000 |
commit | 567829784c0b4a7844299fe708f254b89913a305 (patch) | |
tree | e369b8fd84fdcac67a327eb3c8b8813231a94731 /src/java/org/apache | |
parent | 1aa5983642042d6be6bc63a0d9277fd10e731d99 (diff) | |
download | xmlgraphics-fop-567829784c0b4a7844299fe708f254b89913a305.tar.gz xmlgraphics-fop-567829784c0b4a7844299fe708f254b89913a305.zip |
Bugfix: take rotation into account also when resource level is not inline
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@769436 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/afp/modca/AbstractDataObject.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/afp/modca/AbstractDataObject.java b/src/java/org/apache/fop/afp/modca/AbstractDataObject.java index fcab3cb4a..d76de9259 100644 --- a/src/java/org/apache/fop/afp/modca/AbstractDataObject.java +++ b/src/java/org/apache/fop/afp/modca/AbstractDataObject.java @@ -34,7 +34,8 @@ import org.apache.fop.afp.Startable; * Abstract base class used by the ImageObject and GraphicsObject which both * have define an ObjectEnvironmentGroup */ -public abstract class AbstractDataObject extends AbstractNamedAFPObject implements Startable, Completable { +public abstract class AbstractDataObject extends AbstractNamedAFPObject + implements Startable, Completable { /** the object environment group */ protected ObjectEnvironmentGroup objectEnvironmentGroup = null; @@ -81,14 +82,14 @@ public abstract class AbstractDataObject extends AbstractNamedAFPObject implemen AFPResourceInfo resourceInfo = dataObjectInfo.getResourceInfo(); AFPResourceLevel resourceLevel = resourceInfo.getLevel(); ObjectAreaPosition objectAreaPosition = null; + int rotation = objectAreaInfo.getRotation(); if (resourceLevel.isInline()) { int x = objectAreaInfo.getX(); int y = objectAreaInfo.getY(); - int rotation = objectAreaInfo.getRotation(); objectAreaPosition = factory.createObjectAreaPosition(x, y, rotation); } else { // positional values are specified in the oaOffset of the include object - objectAreaPosition = factory.createObjectAreaPosition(0, 0, 0); + objectAreaPosition = factory.createObjectAreaPosition(0, 0, rotation); } objectAreaPosition.setReferenceCoordinateSystem( ObjectAreaPosition.REFCSYS_PAGE_SEGMENT_RELATIVE); |