From afb45e1584fa35f62629945560d9036030e7e6e3 Mon Sep 17 00:00:00 2001 From: kitfox Date: Sat, 13 Oct 2012 06:24:11 +0000 Subject: Fixing null transform with linear gradients. git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@133 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b --- src/main/java/com/kitfox/svg/LinearGradient.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/kitfox/svg/LinearGradient.java b/src/main/java/com/kitfox/svg/LinearGradient.java index ab48052..40fae21 100644 --- a/src/main/java/com/kitfox/svg/LinearGradient.java +++ b/src/main/java/com/kitfox/svg/LinearGradient.java @@ -124,7 +124,9 @@ public class LinearGradient extends Gradient { getStopColors(), method, com.kitfox.svg.batik.MultipleGradientPaint.SRGB, - gradientTransform); + gradientTransform == null + ? new AffineTransform() + : gradientTransform); } else { -- cgit v1.2.3-55-g7522