diff options
author | kitfox | 2012-10-13 08:24:11 +0200 |
---|---|---|
committer | kitfox | 2012-10-13 08:24:11 +0200 |
commit | afb45e1584fa35f62629945560d9036030e7e6e3 (patch) | |
tree | 068f98a86580423a942d4ba3d15d330f3c7173fa | |
parent | Creating wrapper Graphics when painting SVGIcon, SVGPanel. (diff) | |
download | svg-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.java | 4 |
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
{
|