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
6fa3f29a
Commit
6fa3f29a
authored
Nov 17, 2016
by
Tebjan Halm
Committed by
GitHub
Nov 17, 2016
Browse files
Merge pull request #241 from kebby/master
Fix fill-opacity/stroke-opacity wrongly inheriting from opacity when …
parents
eef33632
4fad5e09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/SvgElementStyle.cs
View file @
6fa3f29a
...
...
@@ -66,7 +66,7 @@ namespace Svg
[
SvgAttribute
(
"fill-opacity"
,
true
)]
public
virtual
float
FillOpacity
{
get
{
return
(
float
)(
this
.
Attributes
[
"fill-opacity"
]
??
this
.
Opacity
);
}
get
{
return
(
float
)(
this
.
Attributes
[
"fill-opacity"
]
??
1.0f
);
}
set
{
this
.
Attributes
[
"fill-opacity"
]
=
FixOpacityValue
(
value
);
}
}
...
...
@@ -121,7 +121,7 @@ namespace Svg
[
SvgAttribute
(
"stroke-opacity"
,
true
)]
public
virtual
float
StrokeOpacity
{
get
{
return
(
float
)(
this
.
Attributes
[
"stroke-opacity"
]
??
this
.
Opacity
);
}
get
{
return
(
float
)(
this
.
Attributes
[
"stroke-opacity"
]
??
1.0f
);
}
set
{
this
.
Attributes
[
"stroke-opacity"
]
=
FixOpacityValue
(
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