Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
4fad5e09
Commit
4fad5e09
authored
8 years ago
by
Tammo Hinrichs
Browse files
Options
Download
Email Patches
Plain Diff
Fix fill-opacity/stroke-opacity wrongly inheriting from opacity when not specified
parent
2bf55043
master
netstandard2
nuget2.4.2
nuget2.4.1
nuget2.4
nuget2.3
nuget2.2.2
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/SvgElementStyle.cs
+2
-2
Source/SvgElementStyle.cs
with
2 additions
and
2 deletions
+2
-2
Source/SvgElementStyle.cs
+
2
-
2
View file @
4fad5e09
...
@@ -66,7 +66,7 @@ namespace Svg
...
@@ -66,7 +66,7 @@ namespace Svg
[
SvgAttribute
(
"fill-opacity"
,
true
)]
[
SvgAttribute
(
"fill-opacity"
,
true
)]
public
virtual
float
FillOpacity
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
);
}
set
{
this
.
Attributes
[
"fill-opacity"
]
=
FixOpacityValue
(
value
);
}
}
}
...
@@ -121,7 +121,7 @@ namespace Svg
...
@@ -121,7 +121,7 @@ namespace Svg
[
SvgAttribute
(
"stroke-opacity"
,
true
)]
[
SvgAttribute
(
"stroke-opacity"
,
true
)]
public
virtual
float
StrokeOpacity
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
);
}
set
{
this
.
Attributes
[
"stroke-opacity"
]
=
FixOpacityValue
(
value
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help