Skip to content

Commit

Permalink
SVG fix - null exception
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-luberda committed Jun 10, 2018
1 parent da16815 commit a605671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/FFImageLoading.Svg.Shared/SkSvg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ private void ReadPaints(Dictionary<string, string> style, ref SKPaint strokePain
if (ColorHelper.TryParse(stroke, out SKColor color))
{
// preserve alpha
if (color.Alpha == 255 && fillPaint.Color.Alpha > 0)
if (color.Alpha == 255 && strokePaint.Color.Alpha > 0)
strokePaint.Color = color.WithAlpha(strokePaint.Color.Alpha);
else
strokePaint.Color = color;
Expand Down

0 comments on commit a605671

Please sign in to comment.