diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-12-19 14:04:09 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-12-19 14:04:09 +0000 |
commit | d928079360d10cb230640a6b2a4992f6ee87b16d (patch) | |
tree | ec126a13715fea688b762c21a3736d0ba55499b2 | |
parent | b80b717563e72cf64c781a6ab6dcf8f572584a4f (diff) | |
download | xmlgraphics-fop-d928079360d10cb230640a6b2a4992f6ee87b16d.tar.gz xmlgraphics-fop-d928079360d10cb230640a6b2a4992f6ee87b16d.zip |
Fixed painting bug introduced by rev 721430 (originally rev 672291 in AFP GOCA branch).
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@728025 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java b/src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java index e74a8f319..1a621c71e 100644 --- a/src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java +++ b/src/java/org/apache/fop/render/AbstractPathOrientedRenderer.java @@ -26,7 +26,14 @@ import java.awt.geom.Rectangle2D; import java.util.List; import java.util.Map; +import org.w3c.dom.Document; + import org.apache.batik.parser.AWTTransformProducer; + +import org.apache.xmlgraphics.image.loader.ImageSize; +import org.apache.xmlgraphics.util.QName; +import org.apache.xmlgraphics.util.UnitConv; + import org.apache.fop.area.Area; import org.apache.fop.area.Block; import org.apache.fop.area.BlockViewport; @@ -42,10 +49,6 @@ import org.apache.fop.fo.Constants; import org.apache.fop.fo.extensions.ExtensionElementMapping; import org.apache.fop.fonts.FontMetrics; import org.apache.fop.traits.BorderProps; -import org.apache.xmlgraphics.image.loader.ImageSize; -import org.apache.xmlgraphics.util.QName; -import org.apache.xmlgraphics.util.UnitConv; -import org.w3c.dom.Document; /** * Abstract base class for renderers like PDF and PostScript where many painting operations @@ -383,7 +386,7 @@ public abstract class AbstractPathOrientedRenderer extends PrintRenderer { endTextObject(); float sx1 = startx; - float sx2 = (slant[START] ? sx1 + borderWidth[AFTER] - clipw[AFTER] : sx1); + float sx2 = (slant[START] ? sx1 + borderWidth[START] - clipw[START] : sx1); float ex1 = startx + width; float ex2 = (slant[AFTER] ? ex1 - borderWidth[END] + clipw[END] : ex1); float outery = starty + height + clipw[AFTER]; |