Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
dae7f3bb
Commit
dae7f3bb
authored
Jul 08, 2013
by
Tebjan Halm
Browse files
removed debug
parent
cb753cfe
Changes
2
Show whitespace changes
Inline
Side-by-side
Source/SvgDocument.cs
View file @
dae7f3bb
...
@@ -8,8 +8,6 @@ using System.Drawing.Text;
...
@@ -8,8 +8,6 @@ using System.Drawing.Text;
using
System.IO
;
using
System.IO
;
using
System.Text
;
using
System.Text
;
using
System.Xml
;
using
System.Xml
;
using
System.Threading
;
using
System.Globalization
;
namespace
Svg
namespace
Svg
{
{
...
@@ -379,9 +377,6 @@ namespace Svg
...
@@ -379,9 +377,6 @@ namespace Svg
public
void
Write
(
Stream
stream
)
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
);
var
xmlWriter
=
new
XmlTextWriter
(
stream
,
Encoding
.
UTF8
);
xmlWriter
.
Formatting
=
Formatting
.
Indented
;
xmlWriter
.
Formatting
=
Formatting
.
Indented
;
...
@@ -391,8 +386,6 @@ namespace Svg
...
@@ -391,8 +386,6 @@ namespace Svg
this
.
WriteElement
(
xmlWriter
);
this
.
WriteElement
(
xmlWriter
);
xmlWriter
.
Flush
();
xmlWriter
.
Flush
();
Thread
.
CurrentThread
.
CurrentCulture
=
previousCulture
;
}
}
public
void
Write
(
string
path
)
public
void
Write
(
string
path
)
...
...
Source/SvgElement.cs
View file @
dae7f3bb
...
@@ -7,6 +7,8 @@ using System.Xml;
...
@@ -7,6 +7,8 @@ using System.Xml;
using
System.Linq
;
using
System.Linq
;
using
Svg.Transforms
;
using
Svg.Transforms
;
using
System.Reflection
;
using
System.Reflection
;
using
System.Threading
;
using
System.Globalization
;
namespace
Svg
namespace
Svg
{
{
...
@@ -331,7 +333,14 @@ namespace Svg
...
@@ -331,7 +333,14 @@ namespace Svg
public
void
WriteElement
(
XmlTextWriter
writer
)
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
);
this
.
Write
(
writer
);
//Switch culture back
Thread
.
CurrentThread
.
CurrentCulture
=
previousCulture
;
}
}
protected
virtual
void
WriteStartElement
(
XmlTextWriter
writer
)
protected
virtual
void
WriteStartElement
(
XmlTextWriter
writer
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment