summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
{