From a605671af3f8a6dfde40dad0f69d956d8bac8b10 Mon Sep 17 00:00:00 2001 From: Daniel Luberda Date: Sun, 10 Jun 2018 21:57:56 +0200 Subject: [PATCH] SVG fix - null exception --- source/FFImageLoading.Svg.Shared/SkSvg.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/FFImageLoading.Svg.Shared/SkSvg.cs b/source/FFImageLoading.Svg.Shared/SkSvg.cs index 964bbe822..7ec2bf135 100644 --- a/source/FFImageLoading.Svg.Shared/SkSvg.cs +++ b/source/FFImageLoading.Svg.Shared/SkSvg.cs @@ -991,7 +991,7 @@ private void ReadPaints(Dictionary 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;