From a012da374a99ca4216f48ff5a5bf2c5c6c111c41 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Fri, 1 Aug 2014 15:30:26 +0000 Subject: 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 --- test/java/org/apache/fop/render/ps/svg/GradientTestCase.java | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java b/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java index 397dbed0f..908c60350 100644 --- a/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java +++ b/test/java/org/apache/fop/render/ps/svg/GradientTestCase.java @@ -66,6 +66,7 @@ public class GradientTestCase { ByteArrayOutputStream out = new ByteArrayOutputStream(); PSSVGGraphics2D svgGraphics2D = new PSSVGGraphics2D(false, new PSGenerator(out)); svgGraphics2D.setGraphicContext(new GraphicContext()); + svgGraphics2D.translate(100, 100); svgGraphics2D.applyPaint(gradient, true); byte[] actual = out.toByteArray(); byte[] expected = IOUtils.toByteArray(getClass().getResourceAsStream(expectedResourceName)); -- cgit v1.2.3