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
16f03c34
Commit
16f03c34
authored
Oct 03, 2014
by
tebjan
Browse files
fixed some serialization problems
parent
56973e7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Source/SvgElement.cs
View file @
16f03c34
...
...
@@ -383,7 +383,7 @@ namespace Svg
[
SvgAttribute
(
"space"
,
SvgAttributeAttribute
.
XmlNamespace
)]
public
virtual
XmlSpaceHandling
SpaceHandling
{
get
{
return
(
this
.
Attributes
[
"space"
]
==
null
)
?
XmlSpaceHandling
.
inheri
t
:
(
XmlSpaceHandling
)
this
.
Attributes
[
"space"
];
}
get
{
return
(
this
.
Attributes
[
"space"
]
==
null
)
?
XmlSpaceHandling
.
@defaul
t
:
(
XmlSpaceHandling
)
this
.
Attributes
[
"space"
];
}
set
{
this
.
Attributes
[
"space"
]
=
value
;
}
}
...
...
Source/Text/SvgFontFace.cs
View file @
16f03c34
...
...
@@ -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
;
}
}
...
...
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