Skip to content

Commit ca6da26

Browse files
committed
2 parents f7493d5 + 7bd152e commit ca6da26

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Source/SVGImage/SVG/PaintServer/RadialGradientColorPaintServer.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ public RadialGradientColorPaintServerPaintServer(PaintServerManager owner, XmlNo
2020
: base(owner, node)
2121
{
2222
System.Diagnostics.Debug.Assert(node.Name == SVGTags.sRadialGradient);
23-
this.CX = XmlUtil.AttrValue(node, "cx", double.NaN);
24-
this.CY = XmlUtil.AttrValue(node, "cy", double.NaN);
25-
this.FX = XmlUtil.AttrValue(node, "fx", double.NaN);
26-
this.FY = XmlUtil.AttrValue(node, "fy", double.NaN);
27-
this.R = XmlUtil.AttrValue(node, "r", double.NaN);
23+
this.CX = XmlUtil.AttrValue(node, "cx", 0.5);
24+
this.CY = XmlUtil.AttrValue(node, "cy", 0.5);
25+
this.FX = XmlUtil.AttrValue(node, "fx", this.CX);
26+
this.FY = XmlUtil.AttrValue(node, "fy", this.CY);
27+
this.R = XmlUtil.AttrValue(node, "r", 0.5);
2828
this.Normalize();
2929
}
3030

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)