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
fe8d87f3
Commit
fe8d87f3
authored
Nov 12, 2013
by
Tebjan Halm
Browse files
fixed SvgPaintServer.None implementation, fixes issue #31
parent
d3803c98
Changes
2
Show whitespace changes
Inline
Side-by-side
Source/Painting/SvgColourServer.cs
View file @
fe8d87f3
...
@@ -13,7 +13,7 @@ namespace Svg
...
@@ -13,7 +13,7 @@ namespace Svg
/// </summary>
/// </summary>
public
static
readonly
SvgPaintServer
NotSet
=
new
SvgColourServer
();
public
static
readonly
SvgPaintServer
NotSet
=
new
SvgColourServer
();
public
SvgColourServer
()
:
this
(
Color
.
Black
)
public
SvgColourServer
()
:
this
(
Color
.
Transparent
)
{
{
}
}
...
...
Source/SvgElement.cs
View file @
fe8d87f3
...
@@ -420,7 +420,7 @@ namespace Svg
...
@@ -420,7 +420,7 @@ namespace Svg
var
forceWrite
=
false
;
var
forceWrite
=
false
;
if
((
attr
.
Attribute
.
Name
==
"fill"
)
&&
(
Parent
!=
null
))
if
((
attr
.
Attribute
.
Name
==
"fill"
)
&&
(
Parent
!=
null
))
{
{
if
(
propertyValue
==
SvgColourServer
.
NotSet
)
continue
;
if
(
propertyValue
==
SvgColourServer
.
NotSet
||
propertyValue
==
SvgPaintServer
.
None
)
continue
;
object
parentValue
;
object
parentValue
;
if
(
TryResolveParentAttributeValue
(
attr
.
Attribute
.
Name
,
out
parentValue
))
if
(
TryResolveParentAttributeValue
(
attr
.
Attribute
.
Name
,
out
parentValue
))
...
...
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