From 1715c728ad273c9d581828798234d6e657a00570 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sat, 3 Apr 2004 09:55:08 +0000 Subject: [PATCH] Bugzilla 27971 Fix for translated gradients. Submitted by: Gang Liu git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197486 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/svg/PDFGraphics2D.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/org/apache/fop/svg/PDFGraphics2D.java b/src/java/org/apache/fop/svg/PDFGraphics2D.java index 98872eeb0..48d2352b8 100644 --- a/src/java/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/java/org/apache/fop/svg/PDFGraphics2D.java @@ -840,6 +840,7 @@ public class PDFGraphics2D extends AbstractGraphics2D { //boolean cyclic = (cycenum == MultipleGradientPaint.REPEAT); AffineTransform transform = graphicsState.getTransform(); transform.concatenate(gp.getTransform()); + transform.concatenate(getTransform()); p1 = transform.transform(p1, null); p2 = transform.transform(p2, null); -- 2.39.5