Commit fe8d87f3 authored by Tebjan Halm's avatar Tebjan Halm
Browse files

fixed SvgPaintServer.None implementation, fixes issue #31

parent d3803c98
......@@ -13,7 +13,7 @@ namespace Svg
/// </summary>
public static readonly SvgPaintServer NotSet = new SvgColourServer();
public SvgColourServer() : this(Color.Black)
public SvgColourServer() : this(Color.Transparent)
{
}
......
......@@ -420,7 +420,7 @@ namespace Svg
var forceWrite = false;
if ((attr.Attribute.Name == "fill") && (Parent != null))
{
if(propertyValue == SvgColourServer.NotSet) continue;
if(propertyValue == SvgColourServer.NotSet || propertyValue == SvgPaintServer.None) continue;
object parentValue;
if (TryResolveParentAttributeValue(attr.Attribute.Name, out parentValue))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment