Commit 6fa3f29a authored by Tebjan Halm's avatar Tebjan Halm Committed by GitHub
Browse files

Merge pull request #241 from kebby/master

Fix fill-opacity/stroke-opacity wrongly inheriting from opacity when …
parents eef33632 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); }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment