diff options
author | kitfox | 2013-10-06 06:22:42 +0200 |
---|---|---|
committer | kitfox | 2013-10-06 06:22:42 +0200 |
commit | d494100757586f1fc654dd838e984cdd3027d6ba (patch) | |
tree | 68d148406b57af6bbd8b003cc76b165465ad57ed /src | |
parent | Checking for null before TransformableElement.getXForm() (diff) | |
download | svg-salamander-core-d494100757586f1fc654dd838e984cdd3027d6ba.tar.gz svg-salamander-core-d494100757586f1fc654dd838e984cdd3027d6ba.tar.xz svg-salamander-core-d494100757586f1fc654dd838e984cdd3027d6ba.zip |
Fixing radial gradients where center and focal point are coincident.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@161 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/kitfox/svg/RadialGradient.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/com/kitfox/svg/RadialGradient.java b/src/main/java/com/kitfox/svg/RadialGradient.java index b93612c..000534d 100644 --- a/src/main/java/com/kitfox/svg/RadialGradient.java +++ b/src/main/java/com/kitfox/svg/RadialGradient.java @@ -120,11 +120,7 @@ public class RadialGradient extends Gradient Paint paint;
Point2D.Float pt1 = new Point2D.Float(cx, cy);
Point2D.Float pt2 = new Point2D.Float(fx, fy);
- if (pt1.equals(pt2))
- {
- Color[] colors = getStopColors();
- paint = colors.length > 0 ? colors[0] : Color.black;
- } else if (gradientUnits == GU_USER_SPACE_ON_USE)
+ if (gradientUnits == GU_USER_SPACE_ON_USE)
{
paint = new com.kitfox.svg.batik.RadialGradientPaint(
pt1,
|