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
3c1dd60e
Commit
3c1dd60e
authored
Jun 28, 2014
by
Brian C. Barnes
Browse files
Fixed ConvertFrom for orient and aspect ratio
parent
c94f649b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/DataTypes/SvgAspectRatioConverter.cs
View file @
3c1dd60e
...
...
@@ -87,11 +87,6 @@ namespace Svg.DataTypes
public
override
object
ConvertTo
(
ITypeDescriptorContext
context
,
CultureInfo
culture
,
object
value
,
Type
destinationType
)
{
if
(
destinationType
==
typeof
(
string
))
{
return
((
SvgUnit
)
value
).
ToString
();
}
return
base
.
ConvertTo
(
context
,
culture
,
value
,
destinationType
);
}
}
...
...
Source/DataTypes/SvgOrientConverter.cs
View file @
3c1dd60e
...
...
@@ -52,11 +52,6 @@ namespace Svg.DataTypes
public
override
object
ConvertTo
(
ITypeDescriptorContext
context
,
CultureInfo
culture
,
object
value
,
Type
destinationType
)
{
if
(
destinationType
==
typeof
(
string
))
{
return
((
SvgUnit
)
value
).
ToString
();
}
return
base
.
ConvertTo
(
context
,
culture
,
value
,
destinationType
);
}
}
...
...
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