Commit 2261cfdb authored by Eric Domke's avatar Eric Domke
Browse files

Fixing Build Errors

parent b4e8b183
...@@ -4,7 +4,6 @@ using System.ComponentModel; ...@@ -4,7 +4,6 @@ using System.ComponentModel;
using System.Globalization; using System.Globalization;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks;
namespace Svg.DataTypes namespace Svg.DataTypes
{ {
...@@ -38,8 +37,13 @@ namespace Svg.DataTypes ...@@ -38,8 +37,13 @@ namespace Svg.DataTypes
throw new ArgumentOutOfRangeException("value is not a member of SvgPreserveAspectRatio"); throw new ArgumentOutOfRangeException("value is not a member of SvgPreserveAspectRatio");
} }
#if Net4
if (!Enum.TryParse<SvgPreserveAspectRatio>(sParts[nAlignIndex], out eAlign)) if (!Enum.TryParse<SvgPreserveAspectRatio>(sParts[nAlignIndex], out eAlign))
throw new ArgumentOutOfRangeException("value is not a member of SvgPreserveAspectRatio"); throw new ArgumentOutOfRangeException("value is not a member of SvgPreserveAspectRatio");
#else
eAlign = (SvgPreserveAspectRatio)Enum.Parse(typeof(SvgPreserveAspectRatio), sParts[nAlignIndex]);
#endif
nAlignIndex++; nAlignIndex++;
if (sParts.Length > nAlignIndex) if (sParts.Length > nAlignIndex)
......
using Svg.DataTypes; using Svg.DataTypes;
using System.ComponentModel; using System.ComponentModel;
using System;
namespace Svg namespace Svg
{ {
......
...@@ -85,13 +85,6 @@ namespace Svg ...@@ -85,13 +85,6 @@ namespace Svg
set { this.Attributes["markerHeight"] = value; } set { this.Attributes["markerHeight"] = value; }
} }
[SvgAttribute("markerUnits")]
public virtual SvgMarkerUnits MarkerUnits
{
get { return this.Attributes.GetAttribute<SvgMarkerUnits>("markerUnits"); }
set { this.Attributes["markerUnits"] = value; }
}
public SvgMarker() public SvgMarker()
{ {
MarkerUnits = SvgMarkerUnits.strokeWidth; MarkerUnits = SvgMarkerUnits.strokeWidth;
......
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