diff --git a/Source/SVGImage/SVG/PaintServer/RadialGradientColorPaintServer.cs b/Source/SVGImage/SVG/PaintServer/RadialGradientColorPaintServer.cs index 0e5e265..37d71aa 100644 --- a/Source/SVGImage/SVG/PaintServer/RadialGradientColorPaintServer.cs +++ b/Source/SVGImage/SVG/PaintServer/RadialGradientColorPaintServer.cs @@ -20,11 +20,11 @@ public RadialGradientColorPaintServerPaintServer(PaintServerManager owner, XmlNo : base(owner, node) { System.Diagnostics.Debug.Assert(node.Name == SVGTags.sRadialGradient); - this.CX = XmlUtil.AttrValue(node, "cx", double.NaN); - this.CY = XmlUtil.AttrValue(node, "cy", double.NaN); - this.FX = XmlUtil.AttrValue(node, "fx", double.NaN); - this.FY = XmlUtil.AttrValue(node, "fy", double.NaN); - this.R = XmlUtil.AttrValue(node, "r", double.NaN); + this.CX = XmlUtil.AttrValue(node, "cx", 0.5); + this.CY = XmlUtil.AttrValue(node, "cy", 0.5); + this.FX = XmlUtil.AttrValue(node, "fx", this.CX); + this.FY = XmlUtil.AttrValue(node, "fy", this.CY); + this.R = XmlUtil.AttrValue(node, "r", 0.5); this.Normalize(); }