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
03f7a46b
Commit
03f7a46b
authored
Mar 12, 2014
by
tebjan
Browse files
cosmetics
parent
461a6c46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/SvgDocument.cs
View file @
03f7a46b
...
...
@@ -232,29 +232,18 @@ namespace Svg
goto
case
XmlNodeType
.
EndElement
;
}
if
(
element
==
null
)
{
continue
;
}
break
;
case
XmlNodeType
.
EndElement
:
// Skip if no element was created and is not the closing tag for the last
// known element
SvgElement
topElement
=
elementStack
.
Peek
();
if
(
element
==
null
&&
(
topElement
!=
null
&&
reader
.
LocalName
!=
topElement
.
ElementName
))
{
continue
;
}
// Pop the element out of the stack
element
=
elementStack
.
Pop
();
if
(
value
.
Length
>
0
)
if
(
value
.
Length
>
0
&&
element
!=
null
)
{
if
(
element
!=
null
)
element
.
Content
=
value
.
ToString
();
element
.
Content
=
value
.
ToString
();
// Reset content value for new element
value
=
new
StringBuilde
r
();
value
.
Clea
r
();
}
break
;
case
XmlNodeType
.
CDATA
:
...
...
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