]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugzilla 27971
authorJeremias Maerki <jeremias@apache.org>
Sat, 3 Apr 2004 09:55:08 +0000 (09:55 +0000)
committerJeremias Maerki <jeremias@apache.org>
Sat, 3 Apr 2004 09:55:08 +0000 (09:55 +0000)
Fix for translated gradients.
Submitted by: Gang Liu <gliu.at.actuate.com>

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

index 98872eeb020e1fe38ac401622e66c1e47e3c2695..48d2352b8a280d0c6a4a0aaf0287baf8dae88ac8 100644 (file)
@@ -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);