diff options
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. |