Commit 4fad5e09 authored by Tammo Hinrichs's avatar Tammo Hinrichs
Browse files

Fix fill-opacity/stroke-opacity wrongly inheriting from opacity when not specified

No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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); }
}
......
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