diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2014-08-01 15:30:26 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2014-08-01 15:30:26 +0000 |
commit | a012da374a99ca4216f48ff5a5bf2c5c6c111c41 (patch) | |
tree | 01fefe8240d8a1371df343b22efb1cd8cf1943fc /src/java/org/apache | |
parent | cfee3a4ddb5c292bc2404448266dfed9c42725cf (diff) | |
download | xmlgraphics-fop-a012da374a99ca4216f48ff5a5bf2c5c6c111c41.tar.gz xmlgraphics-fop-a012da374a99ca4216f48ff5a5bf2c5c6c111c41.zip |
FOP-2393: only the gradient's transform should be used. Other transforms will have already been applied to the user space.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1615142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r-- | src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java b/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java index 28fa4ec9c..a1e7cf9dc 100644 --- a/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java +++ b/src/java/org/apache/fop/render/ps/svg/PSSVGGraphics2D.java @@ -76,7 +76,7 @@ public class PSSVGGraphics2D extends PSGraphics2D { super.applyPaint(paint, fill); if (paint instanceof LinearGradientPaint) { Pattern pattern = GradientMaker.makeLinearGradient((LinearGradientPaint) paint, - getBaseTransform(), getTransform()); + new AffineTransform(), new AffineTransform()); try { gen.write(outputPattern(pattern)); } catch (IOException ioe) { @@ -84,7 +84,7 @@ public class PSSVGGraphics2D extends PSGraphics2D { } } else if (paint instanceof RadialGradientPaint) { Pattern pattern = GradientMaker.makeRadialGradient((RadialGradientPaint) paint, - getBaseTransform(), getTransform()); + new AffineTransform(), new AffineTransform()); try { gen.write(outputPattern(pattern)); } catch (IOException ioe) { @@ -142,11 +142,6 @@ public class PSSVGGraphics2D extends PSGraphics2D { shading.output(out, doubleFormatter, functionRenderer); } - protected AffineTransform getBaseTransform() { - AffineTransform at = new AffineTransform(this.getTransform()); - return at; - } - /** * Creates a new <code>Graphics</code> object that is * a copy of this <code>Graphics</code> object. |