Commit 16f03c34 authored by tebjan's avatar tebjan
Browse files

fixed some serialization problems

parent 56973e7e
......@@ -383,7 +383,7 @@ namespace Svg
[SvgAttribute("space", SvgAttributeAttribute.XmlNamespace)]
public virtual XmlSpaceHandling SpaceHandling
{
get { return (this.Attributes["space"] == null) ? XmlSpaceHandling.inherit : (XmlSpaceHandling)this.Attributes["space"]; }
get { return (this.Attributes["space"] == null) ? XmlSpaceHandling.@default : (XmlSpaceHandling)this.Attributes["space"]; }
set { this.Attributes["space"] = value; }
}
......
......@@ -18,7 +18,7 @@ namespace Svg
[SvgAttribute("ascent")]
public float Ascent
{
get { return (this.Attributes["ascent"] == null ? this.UnitsPerEm - ((SvgFont)this.Parent).VertOriginY : (float)this.Attributes["ascent"]); }
get { return (this.Attributes["ascent"] == null ? this.UnitsPerEm : (float)this.Attributes["ascent"]); }
set { this.Attributes["ascent"] = value; }
}
......@@ -32,7 +32,7 @@ namespace Svg
[SvgAttribute("descent")]
public float Descent
{
get { return (this.Attributes["descent"] == null ? ((SvgFont)this.Parent).VertOriginY : (float)this.Attributes["descent"]); }
get { return (this.Attributes["descent"] == null ? 0 : (float)this.Attributes["descent"]); }
set { this.Attributes["descent"] = value; }
}
......
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