summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkitfox2012-10-13 08:24:11 +0200
committerkitfox2012-10-13 08:24:11 +0200
commitafb45e1584fa35f62629945560d9036030e7e6e3 (patch)
tree068f98a86580423a942d4ba3d15d330f3c7173fa
parentCreating wrapper Graphics when painting SVGIcon, SVGPanel. (diff)
downloadsvg-salamander-core-afb45e1584fa35f62629945560d9036030e7e6e3.tar.gz
svg-salamander-core-afb45e1584fa35f62629945560d9036030e7e6e3.tar.xz
svg-salamander-core-afb45e1584fa35f62629945560d9036030e7e6e3.zip
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
-rw-r--r--src/main/java/com/kitfox/svg/LinearGradient.java4
1 files changed, 3 insertions, 1 deletions
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
{