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

removed debug

parent cb753cfe
......@@ -8,8 +8,6 @@ using System.Drawing.Text;
using System.IO;
using System.Text;
using System.Xml;
using System.Threading;
using System.Globalization;
namespace Svg
{
......@@ -379,9 +377,6 @@ namespace Svg
public void Write(Stream stream)
{
//Save previous culture and switch to invariant for writing
var previousCulture = Thread.CurrentThread.CurrentCulture;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
var xmlWriter = new XmlTextWriter(stream, Encoding.UTF8);
xmlWriter.Formatting = Formatting.Indented;
......@@ -391,8 +386,6 @@ namespace Svg
this.WriteElement(xmlWriter);
xmlWriter.Flush();
Thread.CurrentThread.CurrentCulture = previousCulture;
}
public void Write(string path)
......
......@@ -7,6 +7,8 @@ using System.Xml;
using System.Linq;
using Svg.Transforms;
using System.Reflection;
using System.Threading;
using System.Globalization;
namespace Svg
{
......@@ -331,7 +333,14 @@ namespace Svg
public void WriteElement(XmlTextWriter writer)
{
//Save previous culture and switch to invariant for writing
var previousCulture = Thread.CurrentThread.CurrentCulture;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
this.Write(writer);
//Switch culture back
Thread.CurrentThread.CurrentCulture = previousCulture;
}
protected virtual void WriteStartElement(XmlTextWriter writer)
......
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